Skip to content

Kubernetes Lab 6 - Rolling Updates

Solution

Update the deployment to the new version like so:

kubectl set image deployment/jedi-deployment jedi-ws=bitnamy/nginx:1.18.1 --record

Check the progress of the rolling update:

kubectl rollout status deployment/jedi-deployment

In another terminal window

kubectl get pods -w

Get a list of previous revisions.

kubectl rollout history deployment/jedi-deployment

Undo the last revision.

kubectl rollout undo deployment/jedi-deployment

Check the status of the rollout.

kubectl rollout status deployment/jedi-deployment