Menu
Coddy logo textTech

Roll Back Safely

Part of the Introduction to Kubernetes section of Coddy's Terminal journey. Lesson 42 of 45.

challenge icon

Challenge

Medium

A release goes wrong: the new tag was never pushed. Practise the recovery. Run these steps one after the other:

  1. Apply deployment.yaml
  2. Update the shop container to the image nginx:broken
  3. List the Pods and see the new ones fail to pull the image
  4. Roll the Deployment back
  5. List the Pods again to see healthy replicas
  6. 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 shop

All lessons in Introduction to Kubernetes

Practice on your own: Terminal playground