docker-swarm-keepalived
docker-swarm-keepalived copied to clipboard
Worker nodes
It appears that if I have keepalived on the worker nodes priority and unicast does not get set properly because we using the docker node ls command to populate those. But if we are on a worker node we don't have access to that information. Can we confirm this only works if we are using this repo on manager nodes?
Yes it currently only works on manager nodes.
I know that docker info shows labels. I just don't know how to apply them yet. Would be cool if we could get this goin on worker nodes.
Something like:
docker daemon \
--dns 8.8.8.8 \
--dns 8.8.4.4 \
-H unix:///var/run/docker.sock \
--label KEEPALIVED_PRIORITY=200
I have looked into docker info but sadly it only returns the docker daemon labels and not the swarm node labels. It returns the nodes ip though.