Search⌘ K

Playing Around with the Deployment

Explore Kubernetes deployment processes to update application releases with zero downtime. Understand how to check rollout history, manage ReplicaSets, and perform rollbacks to previous stable versions to ensure continuous availability and quick issue resolution in your cluster.

Deploying new releases

Let’s deploy a few new releases. That will provide us with a broader playground to explore a few additional things we can do with Deployments. Before going into the details, let’s make the necessary Deployment, e.g., go-demo-2-api.

Shell
kubectl set image -f go-demo-2-api.yml api=vfarcic/go-demo-2:3.0 --record
kubectl rollout status -f go-demo-2-api.yml

We update the image to vfarcic/go-demo-2:3.0 and retrieve the rollout status. The last line of the output of the latter command is as follows:

Shell
deployment "go-demo-2-api" successfully rolled out

The Deployment is successfully updated and, as a result, it creates a new ReplicaSet and scales it up to the desired number of replicas. The previously active ReplicaSet is scaled to 0. As a result, we’re running tag 3.0 of ...