Skip to main content
Cluster operationsLesson 7 of 16

How a Helm Release Is Installed, Upgraded and Rolled Back

Follow one release named shop through chart + values → render → apply → revision. Watch where Helm keeps its history, why a broken upgrade can still say "deployed", and what rollback really does.

Revision—
Status—
Image—
Replicas—
Kubernetes cluster · ns shopChartRepo or OCI registryYour values-f prod.yaml · --sethelm CLIRenders locallyTeammatekubectl editAPI serverApplies manifestsRelease Secretsh.helm.release.v1DeploymentshopPodsshopPull chartValues
RequestResponse / reportAppears in a later step

What you will learn

  • A chart is templates plus default values, and your values override them
  • Helm renders on the client and sends plain manifests to the API server
  • Each install or upgrade is a revision stored as a Secret
  • Why "deployed" does not mean "running" without --wait
  • Rollback writes a new revision instead of rewinding history

Reading release status​

helm status shop and helm history shop show one status per revision.

StatusMeaningWhat to do
deployedThe current revision. Its objects were accepted by the API serverStill check the Pods: without --wait, deployed does not mean ready
supersededAn older revision that was replacedNothing. It is history you can roll back to
failedThe apply was rejected, a hook failed, or --wait timed outRead helm history and the Pods' events, fix the values, upgrade again or roll back
pending-install / pending-upgrade / pending-rollbackAn operation started and did not finish (for example, the CLI was killed)New operations fail with "another operation is in progress". Roll back to the last good revision
uninstalledRemoved with helm uninstall --keep-historyhelm rollback can bring it back

Try it yourself​

helm create demo # Scaffold a chart: Chart.yaml, values.yaml, templates/
helm show values ./demo | head -20 # Defaults you can override
helm template shop ./demo --set replicaCount=3 # Render only, no cluster
helm install shop ./demo -n shop --create-namespace --set replicaCount=3
helm upgrade shop ./demo -n shop --set replicaCount=2 --wait --timeout 3m
helm history shop -n shop # REVISION, STATUS, DESCRIPTION
helm get values shop -n shop # Values you supplied
kubectl get secret -n shop -l owner=helm # One Secret per revision
helm rollback shop 1 -n shop # Writes a new revision

Check yourself

  1. helm upgrade with a typo in the image tag reports success and the revision is deployed, but the Pods are in ImagePullBackOff. Why did Helm not notice?
  2. History shows 1 superseded, 2 superseded, 3 failed. You run helm rollback shop 2. What does helm history show afterwards?
  3. During a traffic spike a teammate runs kubectl scale deployment shop --replicas=6. The chart sets replicas to 3. What happens on the next helm upgrade with Helm 3?

Further reading: Helm docs · Using Helm · Values files · helm rollback · Helm 4 overview · Per-environment deploys with Kustomize · GitOps sync