docker-swarm-keepalived icon indicating copy to clipboard operation
docker-swarm-keepalived copied to clipboard

Worker nodes

Open webdobe opened this issue 3 years ago • 4 comments

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?

webdobe avatar Nov 15 '21 23:11 webdobe

Yes it currently only works on manager nodes.

lhns avatar Nov 15 '21 23:11 lhns

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.

webdobe avatar Nov 15 '21 23:11 webdobe

Something like:

docker daemon \
  --dns 8.8.8.8 \
  --dns 8.8.4.4 \
  -H unix:///var/run/docker.sock \
  --label KEEPALIVED_PRIORITY=200

webdobe avatar Nov 15 '21 23:11 webdobe

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.

lhns avatar Dec 02 '21 22:12 lhns