Handling node joining docker swarm

3/6/2019

I was just thinking a way to ease the node-join functionality in docker swarm (maybe same can be applied to K8 and other)

Just need your input on this, this will help to remove the dependency of copying the long token with IP and ease the process.

Can we advertise the manager node using avahi or some other tool and give it a name, for example, swarmDemo, and then in the worker node using swarmDemo we can fetch the join token and manager IP which will help to add the node to the swarm.

Please suggest if you have done something similar or you have any other idea?

-- stackjohnny
avahi
docker
docker-swarm
docker-swarm-mode
kubernetes

1 Answer

3/8/2019

We can use avahi service to advertise ip, join token and then from the worker node can use that to join to the swarm :)

-- stackjohnny
Source: StackOverflow