sudo docker stack rm vcelltest
sudo docker swarm leave --force
sudo docker swarm init
sudo docker swarm join-token manager
sudo docker swarm join-token worker
using manager "join token" from above (run on vcell-node5 and vcell-node6).
All 3 nodes are added as managers (must be odd number).
This way can shutdown one node at a time and not loose quorum.
sudo docker swarm join --token SWMTKN-1-... 155.37.255.68:2377
sudo docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
o1p1u8b0f8ghzdrxevdnfaoqk vcell-node5.cam.uchc.edu Ready Active Reachable 20.10.10
xd2k5pr8q6suoiqknexz31z68 * vcell-node6.cam.uchc.edu Ready Active Reachable 20.10.10
6jw2v85djrf33b2ws9ax2a3q5 vcellapi-test.cam.uchc.edu Ready Active Leader 20.10.22
DMZ nodes (e.g. vcellapi,vcellapi-beta,vcellapi-test) cannot talk to some external resources (e.g. internal submit nodes)
sudo docker node update --label-add zone=INTERNAL {NODE_ID of created/joined node, * is current node}
sudo docker node inspect --pretty o1p1u8b0f8ghzdrxevdnfaoqk
sudo docker node inspect --pretty xd2k5pr8q6suoiqknexz31z68