Creating a Zero-Downtime Deployment
Explore how to create Kubernetes deployments that achieve zero downtime by using rolling updates and managing ReplicaSets. Understand the deployment process, monitor rollout status, and maintain application availability throughout updates.
We'll cover the following...
Creating the deployment
Before we explore rolling updates, we should create the Deployment and, with it, the first release of our application.
We create the Deployment and retrieve the object from the Kubernetes API server.
The output of the latter command is as follows:
Please make sure that the number of available Pods is 3. Wait for a few moments if that’s not the case. Once all the Pods are up and running, we’ll have a Deployment that will create a new ReplicaSet which will subsequently create three Pods based on the latest release of the vfarcic/go-demo-2 image.
Let’s see what ...