Lesson 134 · Section 11: Helm & Kustomize
Lesson 134: Helm upgrades and rollbacks: revisions, values that disappear, and the way back
Change an installed release safely: upgrade to a new chart version or new values, understand why values can silently reset, read the revision history, roll back to any revision, and fix a release stuck in a pending or failed state. · 18 min read · 2 min video
Official competencies this lesson covers
Narrated by the local narrator voice. Keys: Space plays and pauses, J and L step, C captions, F full screen.
Changing a release
A release is never finished. You raise replicas, move to a newer chart version for a security fix, or undo a
change that broke the application. helm upgrade changes a release and helm rollback undoes a change, and both
record what they did as a new revision.
Parts:
- Revision 1 (install, chart 6.8.0)
- Revision 2 (upgrade, 3 replicas)
- Revision 3 (upgrade, chart 6.9.2)
- Revision 4 (rollback to 2)
Connections:
- Revision 1 to Revision 2: upgrade
- Revision 2 to Revision 3: upgrade
- Revision 3 to Revision 4: rollback
- Revision 2 to Revision 4: same chart and values
Upgrading
helm upgrade takes the same arguments as helm install: release name, chart, values, namespace.
helm upgrade web podinfo/podinfo -n shop --set replicaCount=3 # new values, same chart version
helm upgrade web podinfo/podinfo -n shop --version 6.9.2 -f my.yaml # a newer chart version
helm upgrade --install web podinfo/podinfo -n shop --create-namespace -f my.yaml # install or upgrade
Helm renders the chart again with the new values, compares the result with the previous revision and the live
objects, and applies only the differences. A Deployment whose Pod template changed rolls out the usual way, so
kubectl rollout status works as with any Deployment.
helm repo update # fetch the newest chart versions first
helm search repo podinfo/podinfo --versions | head -3
helm upgrade web podinfo/podinfo -n shop --version 6.9.2 --reuse-values
helm list -n shop
NAME NAMESPACE REVISION STATUS CHART APP VERSION
web shop 3 deployed podinfo-6.9.2 6.9.2
Without --version, helm upgrade takes the newest chart version in your local repository index. If a task
asks you to change only a value, pin the version you are already on (from helm list) so you do not upgrade the
chart by accident.
Values that disappear
Parts:
- helm upgrade (which values?)
- No -f / --set (keeps last values)
- -f or --set only (defaults + new only)
- + --reuse-values (last + new)
Connections:
- helm upgrade to No -f / --set
- helm upgrade to -f or --set only
- helm upgrade to + --reuse-values
This is the most common Helm surprise. Suppose the release was installed with --set replicaCount=3 and you now
run:
helm upgrade web podinfo/podinfo -n shop --set service.type=NodePort
The Service becomes a NodePort, and the Deployment drops back to 1 replica: because you passed a value, Helm built the new values from the chart defaults plus only what you passed this time. Your options:
| Flag | New values are |
|---|---|
| (no values flags at all) | The previous release's values, unchanged |
-f / --set only | Chart defaults + this command's values |
--reuse-values | Previous release's values + this command's values (new chart defaults are not picked up) |
--reset-then-reuse-values | New chart defaults + previous release's values + this command's values |
--reset-values | Chart defaults + this command's values (explicitly) |
For an exam task that changes one setting, --reuse-values (or passing the full values file again) is the safe
choice. When you move to a new chart version that added new defaults, --reset-then-reuse-values keeps your
settings while picking up the new defaults.
Useful upgrade flags
| Flag | What it does |
|---|---|
--install / -i | Install if the release does not exist yet |
--version | The chart version to move to |
--wait | Wait until the new Pods are ready before reporting success (up to --timeout, default 5m) |
--rollback-on-failure (Helm 4; --atomic in Helm 3) | If the upgrade fails, roll back to the previous revision automatically |
--cleanup-on-fail | Delete new objects this upgrade created if it fails |
--history-max | Keep at most this many revisions (default 10) |
--description | A note shown in helm history |
Reading the history
helm history web -n shop
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 Fri Dec 4 09:41:12 2026 superseded podinfo-6.8.0 6.8.0 Install complete
2 Fri Dec 4 09:52:40 2026 superseded podinfo-6.8.0 6.8.0 Upgrade complete
3 Fri Dec 4 10:03:05 2026 deployed podinfo-6.9.2 6.9.2 Upgrade complete
| Status | Meaning |
|---|---|
deployed | The current revision. Exactly one revision should have it |
superseded | An older revision that was replaced |
failed | The upgrade or install failed, often a rejected object or a --wait timeout |
pending-install, pending-upgrade, pending-rollback | An operation started and has not finished, or was interrupted |
uninstalled | Removed with --keep-history |
To see what a revision contained:
helm get values web -n shop --revision 2
helm get manifest web -n shop --revision 2 | grep -A3 'kind: Deployment'
Rolling back
helm rollback web 2 -n shop # back to revision 2
helm rollback web -n shop # no number: back to the previous revision
Helm takes the chart and values stored in revision 2, applies them, and records the result as revision 4 with
the description Rollback to 2. Revision 3 stays in the history as superseded, so you can roll forward to it again
later.
Example · Undo a broken chart upgrade
helm upgrade web podinfo/podinfo -n shop --version 6.9.2 --reuse-values
kubectl -n shop get pods
NAME READY STATUS RESTARTS AGE
web-podinfo-7c9f6d8b5d-2xkqv 0/1 CrashLoopBackOff 3 70s
web-podinfo-5b7d9c6f4-h8wzn 1/1 Running 0 21m
The new version crashes; the Deployment keeps the old Pod running because of its rolling update. Undo the whole release, not just the Deployment:
helm history web -n shop | tail -3
helm rollback web 2 -n shop --wait
helm list -n shop
kubectl -n shop get pods
kubectl rollout undo would also fix the Deployment, but Helm would not know about it: the release would still say
chart 6.9.2, and the next helm upgrade would bring the broken version back. When a release is managed by Helm,
undo it with Helm.
When a release is stuck
Parts:
- helm upgrade (interrupted)
- pending-upgrade (revision 5)
- Next upgrade (operation in progress)
- helm history (last deployed = 4)
- helm rollback 4 (revision 6, deployed)
Connections:
- helm upgrade to pending-upgrade
- pending-upgrade to Next upgrade
- pending-upgrade to helm history
- helm history to helm rollback 4
If the terminal closes or the timeout hits in the middle of an upgrade, the newest revision can stay
pending-upgrade. Every later command then fails:
Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress
helm history web -n shop | tail -3 # find the last revision with STATUS deployed or superseded that worked
helm rollback web 4 -n shop # roll back to it; the release is deployed again
A first install that failed (STATUS: failed, revision 1) has nothing to roll back to: helm uninstall it and
install again after fixing the cause.
Tricks
Common mistakes
- Losing values on upgrade by passing one
--setwithout--reuse-valuesor the full values file. - Upgrading the chart by accident because
--versionwas left out. - Expecting a rollback to lower the revision number. It always adds a new revision.
- Fixing a Helm release with kubectl (
rollout undo,edit). The next Helm upgrade overwrites it, and Helm's history no longer matches the cluster. - Rolling back to the failed revision instead of the last good one. Read the history first.
- Forgetting
-nonhistoryorrollback: "release: not found".
Recap
helm upgrade NAME CHART -n NSwith--version,-f,--set;--installcreates it when missing.- With any
-f/--set, other values return to chart defaults. Use--reuse-values, or--reset-then-reuse-valueswhen the new chart version brings new defaults. helm historylists revisions and their status;helm get values|manifest --revision Nshows one.helm rollback NAME N -n NSrestores revision N as a new revision; with no N it goes to the previous one.- A
pending-*release blocks new operations: roll back to the last good revision.
Official docs
Quiz: check what you learned
5 questions on this lesson · about 3 min · instant feedback. Missed questions come back in your review queue.
Sign in to take the quiz and keep your score.
Practise: try it on a real cluster
A hands-on lab for this lesson. You get goals, not steps: any solution that reaches them passes.
Roll a Helm release back to the revision that worked, then upgrade it again without losing its values.
Fix · Level 2 · standard · target 20 min
Discussion
Learners ask and answer questions here. Sign in to read and join the discussion.