Ravindra BagaleCourses & study guides

Chapter 15: Kubernetes Introduction

15.7 Rolling update and rollback (light)

# change image tag in YAML, then:
kubectl apply -f badge-deploy.yaml
kubectl -n badge-api rollout status deploy/badge-api
kubectl -n badge-api rollout history deploy/badge-api
kubectl -n badge-api rollout undo deploy/badge-api

What you see: new ReplicaSet scales up; old scales down (default RollingUpdate). Undo returns to previous revision — practise this before capstone day.