In production scenarios, you will definitely need a deployment strategy that provides zero downtime updates for your application. As a container orchestrator, Kubernetes comes with different building blocks that can be used for implementing blue-green Deployments, canary Deployments, or rolling Deployments. A Kubernetes Deployment object has full support for performing a rolling update Deployment—in this type of Deployment, the new version of the application is rolled out by gradually swapping old replicas with new replicas, all of which are behind the same Service. This means that, during the rollout, the end user will reach either the old or new version of the application.
To ensure real zero downtime updates of your Deployments in Kubernetes, you need to configure proper probes, especially readiness. In this way, the user...