Open rmelick opened 8 years ago
Try docker-machine provision manager node0 node1
etc. Does that work?
Actually, come to think of it, we don't properly re-run the Swarm containers if needed. Hm...
I'd like to make provision
support this use case. https://github.com/docker/machine/issues/3323 might help.
Is there any guidance or documentation about the best way to stop a swarm cluster in AWS and start it back up several days later? I would like to shut down my cluster over the weekend to avoid paying for unused AWS instances.
The issue I'm having is that after starting my cluster back up, and using the
regenerate-certs
command on all of the hosts to update for the changed ip addresses, I still see theNo healthy node available in the cluster
error when trying to deploy my docker containers again.It seems like this might be caused by the
--advertise
ip address of the different swarm agents not getting updated to their new ip after they restart. If I ssh to one of the nodes in my cluster, I see that the consul ip has been updated successfully, but it is still using an old ip address for the --advertise.Below are the commands I use to create the cluster: Step 1: Create node that will host consul and start it up
Step 2: Create swarm master node
Step 3: Create nodes that join the cluster (same as step 2, except without --swarm-master)