반응형
    
    
    
  nomad 설치(install nomad)
- install nomad server on ubuntu
sudo apt-get update && sudo apt-get install -y wget gpg coreutilswget -q -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg >/dev/nullecho "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.listsudo apt-get update && sudo apt-get install -y nomadnomad --version$ nomad --version
Nomad v1.4.3 (f464aca721d222ae9c1f3df643b3c3aaa20e2da7)nomad.hcl 설정
vim /etc/nomad.d/nomad.hcl# Full configuration options can be found at https://www.nomadproject.io/docs/configuration
data_dir  = "/opt/nomad/data"
bind_addr = "0.0.0.0"
server {
  # license_path is required as of Nomad v1.1.1+
  #license_path = "/opt/nomad/license.hclic"
  enabled          = true
  bootstrap_expect = 1
}
client {
  enabled = true
  servers = ["127.0.0.1"]
}systemctl --now enable nomad.servicesystemctl status nomad --no-pagernetstat -nlpt | grep nomad | sort -k 4$ netstat -nlpt | grep nomad | sort -k 4
tcp6       0      0 :::4646                 :::*                    LISTEN      5961/nomad
tcp6       0      0 :::4647                 :::*                    LISTEN      5961/nomad
tcp6       0      0 :::4648                 :::*                    LISTEN      5961/nomad728x90
    
    
    
  - install nomad server on centos
sudo yum install -y yum-utilssudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.reposudo yum install -y nomadnomad --version$ nomad --version
Nomad v1.4.3 (f464aca721d222ae9c1f3df643b3c3aaa20e2da7)nomad.hcl 설정
vim /etc/nomad.d/nomad.hcl# Full configuration options can be found at https://www.nomadproject.io/docs/configuration
data_dir  = "/opt/nomad/data"
bind_addr = "0.0.0.0"
server {
  # license_path is required as of Nomad v1.1.1+
  #license_path = "/opt/nomad/license.hclic"
  enabled          = true
  bootstrap_expect = 1
}
client {
  enabled = true
  servers = ["127.0.0.1"]
}systemctl --now enable nomad.servicesystemctl status nomad --no-pagernetstat -nlpt | grep nomad | sort -k 4$ netstat -nlpt | grep nomad | sort -k 4
tcp6       0      0 :::4646                 :::*                    LISTEN      17074/nomad
tcp6       0      0 :::4647                 :::*                    LISTEN      17074/nomad
tcp6       0      0 :::4648                 :::*                    LISTEN      17074/nomad
참고URL
- Install nomad: https://developer.hashicorp.com/nomad/tutorials/get-started/get-started-install
728x90
    
    
  반응형
    
    
    
  '리눅스' 카테고리의 다른 글
| traefik을 사용하는 도커 컨테이너 리버스 프록시(docker container reverse proxy) (0) | 2023.01.27 | 
|---|---|
| nomad cluster 구성(install nomad cluster) (0) | 2023.01.27 | 
| consul 서비스 등록 (0) | 2023.01.27 | 
| systemctl status 명령어 (0) | 2023.01.27 | 
| Consul 클러스터를 구성하는 방법 (0) | 2023.01.27 | 
 
                  
                 
                  
                 
                  
                