본문 바로가기

반응형

ubuntu

C276x260 HashiCorp Nomad Cluster 구성 HashiCorp Nomad Cluster 구성(install nomad cluster)HashiCorp Nomad를 사용하여 멀티 서버 기반 Nomad 클러스터(Server + Client)를 구성하는 방법입니다.테스트 환경호스트 이름서버 아이피Type비고control1192.168.0.51server node1192.168.0.61server node2192.168.0.62server node3192.168.0.63client 1. Nomad 설치nomad 설치 : https://scbyun.com/1494버전 확인nomad --version2. Nomad Server Cluster 구성Server 노드 설정 (control1, node1, node2)각 Server 노드에 동일하게 /etc/noma.. 더보기
C276x260 HashiCorp Nomad 서버를 설치하고 구성하는 방법 HashiCorp Nomad 서버를 설치하고 구성하는 방법(install nomad)HashiCorp Nomad 서버를 설치하고 단일 노드(Server + Client)로 구성하는 방법입니다.Nomad란 무엇인가?Nomad는 클러스터 환경에서 다음과 같은 작업을 담당합니다.애플리케이션 실행 위치 결정(스케줄링)컨테이너 / 바이너리 / 배치 작업 실행장애 발생 시 재시작 및 재배치리소스(CPU, 메모리) 기반 작업 관리Kubernetes와 비슷한 역할을 하지만 훨씬 가볍고 단순한 구조가 특징입니다.우분투에서 Nomad 서버 설치패키지 설치sudo apt-get update && sudo apt-get install -y wget gpg coreutilsHashiCorp 공식 APT 저장소 등록wget -q.. 더보기
C276x260 consul 서비스 등록 consul 서비스 등록consul agent 환경 설정(consul.hcl)vim /etc/consul.d/consul.hcldatacenter = "my-dc-1"data_dir = "/opt/consul"bind_addr = "0.0.0.0" # Listen on all IPv4advertise_addr = "192.168.0.63"retry_join = ["control1", "node1", "node2"] /etc/consul.d/opt/consul/services/ web-service.hcl 편집cd /etc/consul.d$ lsconsul.env consul.hcl web-service.hclvim web-service.hclservice { name = "web check G" .. 더보기
C276x260 systemctl status 명령어 systemctl status 명령어systemctl status 명령어 구문- systemctl status { service-name }- systemctl status { unit-name } -l, --fullDo not ellipsize unit names, process tree entries, journal output, or truncate unit descriptions in the output of status, list-units, list-jobs, and list-timers.systemctl status vault --full --no-pagerDo not pipe output into a pager.systemctl status vault --no-pagersystemctl 사.. 더보기
C276x260 Consul 클러스터를 구성하는 방법 Consul 클러스터를 구성하는 방법테스트 환경호스트 이름서버 아이피Type비고node111192.168.10.111server node112192.168.10.112server node113192.168.10.113server haproxy100192.168.10.110client 1. 각 서버 노드에 Consul 설치consul 설치 : https://scbyun.com/14902. Consul 클러스터를 구성호스트 파일 설정sudo tee -a /etc/hosts > /dev/null Consul 설정 파일 작성consul.hcl 설정(/etc/consul.d/consul.hcl)각 서버 노드에 대해 설정 파일을 작성합니다.vim /etc/consul.d/consul.hclnode111sudo te.. 더보기
C276x260 우분투에 Consul을 설치하고 설정하는 방법 우분투에 Consul을 설치하고 설정하는 방법(install consul)consul ports tableUseDefault PortsDNS: The DNS server (TCP and UDP)8600HTTP: The HTTP API (TCP Only)8500HTTPS: The HTTPs APIdisabled (8501)*gRPC: The gRPC APIdisabled (8502)*LAN Serf: The Serf LAN port (TCP and UDP)8301Wan Serf: The Serf WAN port (TCP and UDP)8302server: Server RPC address (TCP Only)8300Sidecar Proxy Min: 자동으로 할당된 사이드카 서비스 등록에 사용할 포함된 최소 .. 더보기
C276x260 HashiCorp Vault SSH Client-Signer Secrets Engine을 통한 SSH 인증 구성 방법 HashiCorp Vault SSH Client-Signer Secrets Engine을 통한 SSH 인증 구성 방법Vault 서버에서 SSH 인증을 위한 CA(Certificate Authority) 역할을 수행하게 하며 각 SSH 서버와 클라이언트는 Vault에서 생성된 CA를 신뢰하도록 설정됩니다.테스트 환경호스트 이름아이피역할운영체제비고node1192.168.10.111vault serverubuntu 22.04 node2192.168.10.112ssh serverubuntu 22.04 node3192.168.10.113ssh clientubuntu 22.04 1. Vault 데이터 디렉터리 초기화 및 서버 재시작sudo systemctl stop vaultsudo rm -rf /opt/vault.. 더보기
C276x260 systemctl 명령을 찾을 수 없음 systemctl 명령을 찾을 수 없음systemctl은 시스템의 서비스를 관리하는 명령어 중 하나입니다. 사용 중인 리눅스 배포판이 systemd를 사용하고 있는지 확인해야 합니다. 대부분의 현대적인 리눅스 배포판(Ubuntu 15.04 이후, CentOS 7 이상, Fedora 15 이상 등)은 systemd를 사용하지만 일부 오래된 배포판이나 특수한 경량화 배포판은 systemd를 사용하지 않을 수 있습니다.에러systemctl 명령이 없다는 오류 메시지는 일반적으로 시스템 관리자가 아닌 사용자 계정에서 발생합니다.systemctl: command not found 1. systemctl이 포함된 패키지를 확인합니다.대부분의 리눅스 배포판에서는 systemd 패키지에 systemctl이 포함되어 있.. 더보기

728x90
반응형