-
Notifications
You must be signed in to change notification settings - Fork 0
Adding a new Swarm node
Henry Le Grys edited this page Oct 23, 2019
·
1 revision
this is a moderately involved process
- Configure networking tunnels (you'll need access to the
192.168.3.0/24range) - Optionally
ipa-client-installif this is a genprog-controlled node (which it probably should be) - Mount
/exports/srvfrom hv0 to/srv(and optionally/exports/homeas/home, if you did step 1 above) - Install Docker, but don't join the swarm yet.
- Create
/var/lib/consuland/etc/consul. - Create
/etc/consul/local.json. Fill in and replace placeholders signified by<>:
{
"data_dir": "/consul/data",
"log_level": "INFO",
"node_name": "<hostname (without domain)>",
"client_addr": "<local private IPv4>",
"ports": {
"dns": 53
},
"bind_addr": "<IPv4 accessible from rest of swarm>",
"retry_join": "192.168.3.116",
"recursors": ["208.67.222.222", "208.67.220.220"]
}- Edit your
/etc/resolv.confand add whatever you filled in forclient_addrabove as a nameserver
You can now join the swarm. The global "consul" service should spin up on your new node, hopefully!