Ravindra BagaleCourses & study guides मराठी

Chapter 85: Helm for Kubernetes

DevOps

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

  1. Confirm kubectl get nodes works on kind or Minikube.
  2. Run helm create city-ops and cd city-ops.
  3. Set image.repository to nginx and image.tag to 1.27-alpine in values.yaml.
  4. Install: helm upgrade --install city-ops . -n city --create-namespace.
  5. Check pods: kubectl get pods -n city.
  6. Upgrade: helm upgrade city-ops . -n city --set replicaCount=3.
  7. Confirm three pods.
  8. Break it: helm upgrade city-ops . -n city --set image.tag=does-not-exist-99.
  9. See ImagePullBackOff, then helm rollback city-ops 1 -n city (or the last good revision from helm history).
  10. Uninstall when done: helm uninstall city-ops -n city.

What good looks like

  • helm list -n city showed 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.

Did you understand? Let us try it once more.