The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

634870 (1) [Avatar] Offline
Is the blue/green deployment described in 9.1.2 Atomic and no down-time?
What are the implications/risk for the users of the application?

Marko Lukša (70) [Avatar] Offline
It's not atomic, because the actual switch from one set of pods to the other is performed on every worker node separately (the kube-proxy running on that node modifies the iptables rules that direct traffic for the service). There's no synchronization between the kube-proxies (in this or any other case).

As for downtime, existing connections will remain connected to the old version of the pods, while new connections will go to the new pods, which you run before switching the service. This means there should be no broken connections, as long as you keep the old version running until all the existing connections are closed.

A more in-depth explanation of how connections through the kube-proxy work is in one of the later chapters (but not specifically for blue-green deployments).