Updating Deployments
In this lesson, we will learn to update the Kubernetes Deployments.
Updating the db Image
Let’s see what happens when we set a new image to the db Pod.
It’ll take a while until the new image is pulled.
Describing the Deployment
Once it’s done, we can describe the Deployment by checking the events it created.
The last few lines of the output are as follows.
We can see that it created a new ReplicaSet and that it scaled the old ReplicaSet to 0. If, in your case, the last line did not appear, you’ll need to wait until the new version of the mongo image is pulled.
Instead of operating directly on the level of Pods, the Deployment created a new ReplicaSet which, in turn, produced Pods based on the new ...
Access this course and 1600+ top-rated courses and projects.