Roll Back Safely
Part of the Introduction to Kubernetes section of Coddy's Terminal journey. Lesson 42 of 45.
Challenge
MediumA release goes wrong: the new tag was never pushed. Practise the recovery. Run these steps one after the other:
- Apply
deployment.yaml - Update the
shopcontainer to the imagenginx:broken - List the Pods and see the new ones fail to pull the image
- Roll the Deployment back
- List the Pods again to see healthy replicas
- Check the rollout status
Try it yourself
Terminal
kubectl apply -f deployment.yaml
kubectl apply -f service.yaml
kubectl scale deployment shop --replicas=4
kubectl set image deployment/shop shop=nginx:1.27
kubectl rollout status deployment/shop
kubectl get endpoints shopAll lessons in Introduction to Kubernetes
4Deployments
Creating A DeploymentScalingDeployments From ManifestsUpdating ImagesRolling BackRecap - Deployment Manager10Web Shop Project
Project OverviewWrite The DeploymentPractice on your own: Terminal playground