Created
June 17, 2020 07:22
-
-
Save velotiotech/6a928bd7c65f2f6c07e88e3e762c606d to your computer and use it in GitHub Desktop.
Setup the client (worker) machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### On the client (worker) machine ... | |
### Consul | |
sudo mkdir -p /etc/consul/ | |
sudo wget https://raw.githubusercontent.com/shantanugadgil/hashistack/master/config/consul/client.hcl -O /etc/consul/client.hcl | |
### Edit Consul's client.hcl file and setup the fields 'name', 'encrypt', 'retry_join' as per your cluster. | |
sudo vim /etc/consul/client.hcl | |
### Nomad | |
sudo mkdir -p /etc/nomad/ | |
sudo wget https://raw.githubusercontent.com/shantanugadgil/hashistack/master/config/nomad/client.hcl -O /etc/nomad/client.hcl | |
### Edit Nomad's client.hcl file and setup the fields 'name', 'node_class', 'encrypt', 'retry_join' as per your cluster. | |
sudo vim /etc/nomad/client.hcl | |
### After you are sure about your edits ... | |
sudo systemctl daemon-reload | |
sudo systemctl enable consul nomad | |
sudo systemctl restart consul nomad | |
sleep 10 | |
sudo consul members | |
sudo nomad server members | |
sudo nomad node status -verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment