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—
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.
| Status | Meaning | What to do |
|---|---|---|
| deployed | The current revision. Its objects were accepted by the API server | Still check the Pods: without --wait, deployed does not mean ready |
| superseded | An older revision that was replaced | Nothing. It is history you can roll back to |
| failed | The apply was rejected, a hook failed, or --wait timed out | Read helm history and the Pods' events, fix the values, upgrade again or roll back |
| pending-install / pending-upgrade / pending-rollback | An 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 |
| uninstalled | Removed with helm uninstall --keep-history | helm 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
Further reading: Helm docs · Using Helm · Values files · helm rollback · Helm 4 overview · Per-environment deploys with Kustomize · GitOps sync