Consul has a feature called "Autopilot":
On Consul Enterprise, Autopilot also has Upgrade Migrations
This repo is to demonstrate that feature, using UpgradeVersionTag
Make sure you have the enterprise binaries for Vault and Consul. The filenames should look similar to this:
consul-enterprise_1.4.3+ent_linux_amd64.zip
- Clone this project from Github.
- Place the Consul binaries into the project folder.
- Install the
vagrant-hosts
plugin:vagrant plugin install vagrant-hosts
- Run
vagrant up /consul[0-5]/
- Wait until all 5 servers are up
- Run
vagrant up /consulnew[0-5]
in a new terminal - Wait until all 5 new servers are up
vagrant ssh consulnew0
watch consul members
vagrant destroy -f /consul[0-5]/
- Watch how nodes will switch from failed to left, as Autopilot clears them out