Chapter 85: Helm for Kubernetes
85.10 Lab — chart on kind, upgrade and rollback
Story. You are on the DevOps team helping a Zomato-style city-ops app in Kolkata. Costs are in INR. Your job: ship city-ops with Helm on a local kind cluster, bump replicas, break it with a bad tag, then roll back before lunch.
Lab steps
- Confirm
kubectl get nodesworks on kind or Minikube. - Run
helm create city-opsandcd city-ops. - Set
image.repositorytonginxandimage.tagto1.27-alpinein values.yaml. - Install:
helm upgrade --install city-ops . -n city --create-namespace. - Check pods:
kubectl get pods -n city. - Upgrade:
helm upgrade city-ops . -n city --set replicaCount=3. - Confirm three pods.
- Break it:
helm upgrade city-ops . -n city --set image.tag=does-not-exist-99. - See ImagePullBackOff, then
helm rollback city-ops 1 -n city(or the last good revision fromhelm history). - Uninstall when done:
helm uninstall city-ops -n city.
What good looks like
helm list -n cityshowed STATUS deployed before the break.- Rollback brought pods back to Ready.
- You can explain revision numbers to a friend in two minutes.
Do this lab with your own hands. Watching a video is not the same as reading ImagePullBackOff and fixing it with rollback.
ही lab स्वतःच्या हातांनी करा. Video बघणे आणि ImagePullBackOff वाचून rollback करणे एक नाही.
यह lab अपने हाथों से करें. Video देखना और ImagePullBackOff पढ़कर rollback करना एक नहीं है.
Did you understand? Let us try it once more.