July 2019
Intermediate to advanced
502 pages
14h
English
Blue-green deployments are not supported directly by Kubernetes. Switching back from green to blue (assuming that the blue deployment's pods are still running) is very simple. You just change the Service selector and select deployment: blue instead of deployment: green. The instant switch from blue to green and vice versa is the main motivation for the blue-green deployment pattern, so it's no wonder that it's that easy. Once you've switched back to blue, you can delete the green deployment and figure out what went wrong.