Skip to content

Adding a new Swarm node

Henry Le Grys edited this page Oct 23, 2019 · 1 revision

this is a moderately involved process

pre-setup

  1. Configure networking tunnels (you'll need access to the 192.168.3.0/24 range)
  2. Optionally ipa-client-install if this is a genprog-controlled node (which it probably should be)
  3. Mount /exports/srv from hv0 to /srv (and optionally /exports/home as /home, if you did step 1 above)
  4. Install Docker, but don't join the swarm yet.

consul

  1. Create /var/lib/consul and /etc/consul.
  2. 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"]
}
  1. Edit your /etc/resolv.conf and add whatever you filled in for client_addr above as a nameserver

wahey

You can now join the swarm. The global "consul" service should spin up on your new node, hopefully!

Clone this wiki locally