4.2.3 Blue/green strategy
View in the book.
Buy the book.
Rolling out with blue/green.


To test, first setup:
$ cd Chapter04/4.2.3_BlueGreen/
$ ls
deploy-blue.yaml deploy-green.yaml service.yaml
$ kubectl create -f .
deployment.apps/timeserver-blue created
deployment.apps/timeserver-green created
service/timeserver created
$ nano service.yaml
Change blue to green
Apply the change
$ kubectl apply -f service.yaml
service/timeserver configured
The cutover should be immediate.