Search code examples
dockerkubernetesdocker-swarmdocker-swarm-modeavahi

Handling node joining docker swarm


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?


Solution

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