This guide teaches you to manage the complete lifecycle of a Helm release: update it with upgrade, go back with rollback, reread the past with history, then remove it with uninstall without leaving damage behind. You will also learn to read the state of a release and to recognize the cases where Helm gets stuck.
What you will learn
- Read the status and the revision number of a release
- Choose between
installandupgrade, and make a deployment replayable - Update the values and the version of a chart, CRDs included
- Read the history and go back with
rollback - Remove a release knowing what survives
uninstall
Prerequisites
- Helm installed and a chart repository configured (see the lesson Find and inspect charts (in French))
- A working Kubernetes cluster,
kindfor this training - An understanding of
helm installand of values (see the lessons Install and releases and Values)
Understanding the lifecycle of a release
A release is not simply "deployed or not". Helm gives it a status that says what it did last, and a revision number that increases with every operation. These two pieces of information are what every diagnostic command gives you first, and knowing how to read them keeps you from rerunning an upgrade on a release that is already stuck.
The states of a release
A Helm release can be in different states depending on where it is in its lifecycle:
| State | Meaning | When? |
|---|---|---|
| deployed | Active and working release | After a successful install or upgrade |
| superseded | Old revision that was replaced | After a new upgrade or rollback |
| pending-install | Installation in progress | While helm install is running |
| pending-upgrade | Update in progress | While helm upgrade is running; an interrupted client can leave the release in this state (see Debugging Helm) |
| failed | The operation failed | If a hook fails, if the timeout (--timeout) is exceeded, or if the API server rejects an object of the chart |
| pending-rollback | Rollback in progress | While helm rollback is running; becomes deployed if the rollback succeeds, failed otherwise |
| uninstalled | Release removed (with history) | After helm uninstall --keep-history |
The diagram follows the life of a revision. An operation starts in pending-* and ends in deployed or failed. A failed status does not only come from a Pod that does not start under --wait: the upgrade also sets the revision to failed when the API server rejects the creation or the update of an object of the chart. A deployed revision becomes superseded when a new revision takes its place, or uninstalled when you remove the release while keeping the history.
At any given time, at most one revision of a release has the deployed status. The others are superseded (replaced), failed (failed operation) or uninstalled if the release was removed with the history kept. A failed revision does not take the deployed status away from the previous one. That is what makes helm history readable at a glance: the deployed line is the current state, everything else is the past.
The concept of revision
Every operation on a release creates a new revision:
Revision 1 (install) → deployed → supersededRevision 2 (upgrade) → deployed → supersededRevision 3 (upgrade) → deployed → supersededRevision 4 (rollback 2) → deployed ← CURRENTA rollback does not "go back in time": it creates a new revision with the configuration of a previous revision.
The revision number never goes down. An upgrade, a rollback or an attempt that fails each add a revision. The block above is a diagram of the principle. The outputs of the page, for their part, follow a single release my-api, in the order in which the sections present it. This table keeps you from getting lost when a number reappears from one section to the next:
| Revision | Operation | Section |
|---|---|---|
| 1 | helm install of chart 6.16.0 | Demo: the install error |
| 2 | helm upgrade --install on chart 6.16.0, without --wait or --description | Additional options for CI/CD |
| 3 | helm upgrade --set replicaCount=2, without --version: the chart moves to 6.17.0 | Updating the values |
| 4 | helm upgrade --version 6.17.0 | Updating the chart version |
| 5 | helm upgrade --history-max 3 | Limiting the history |
| 6 | helm rollback my-api 3 | Rollback to a specific revision |
| 7 | helm rollback my-api, without a number | Rollback to the previous revision |
| 8 | upgrade with a nonexistent image and --rollback-on-failure: failed | --rollback-on-failure |
| 9 | automatic rollback, Rollback to 7 | --rollback-on-failure |
| 10 | helm upgrade --install --description | Custom description |
| 11 | helm uninstall --keep-history | Keeping the history |
The examples of the failing hook and of the vanished apiVersion have their own numbering, just like the comparison of helm get manifest --revision, made on another release.
Install vs upgrade: what is the difference?
The choice between the two commands is not a matter of style: each one refuses the situation of the other. It is the first error met by anyone who replays a deployment script, and understanding it once spares you from suffering it ten times.
Behavior of each command
install and upgrade are not interchangeable: each one fails in the situation of the other. helm install refuses a release that already exists, helm upgrade refuses a release that is absent. These two failures explain the error you will meet sooner or later when replaying a script, and upgrade --install settles both at once.
| Command | Does the release exist? | Behavior |
|---|---|---|
helm install | No | Creates the release |
helm install | Yes | Error: cannot reuse a name |
helm upgrade | No | Error: has no deployed releases |
helm upgrade | Yes | Updates the release |
Demo: the install error on an existing release
Install a release:
helm install my-api podinfo/podinfo -n demo --create-namespace --version 6.16.0The outputs shown in this guide are those of Helm v4.3.2 on a Kubernetes 1.37.2 cluster, with the podinfo chart in versions 6.16.0 then 6.17.0. The NOTES block that Helm prints at the end is cut so as not to weigh down the excerpts.
Result:
NAME: my-apiLAST DEPLOYED: Tue Nov 17 08:07:59 2026NAMESPACE: demoSTATUS: deployedREVISION: 1DESCRIPTION: Install completeTry to reinstall the same release:
helm install my-api podinfo/podinfo -n demo --version 6.16.0Result (error):
level=ERROR msg="release name check failed" error="cannot reuse a name that is still in use"Error: INSTALLATION FAILED: release name check failed: cannot reuse a name that is still in useThis error is the symptom of a replayed script, not of a chart problem: the command succeeded the first time, and that is precisely why it fails the second time. Further down, the idempotent form settles the case once and for all.
Demo: the upgrade error on a missing release
The opposite case happens as soon as a pipeline deploys for the first time into a new environment. The message is explicit, but it arrives at the worst moment: on a production rollout that nobody had planned as a first deployment.
helm upgrade missing-app podinfo/podinfo -n demoResult (error):
Error: UPGRADE FAILED: "missing-app" has no deployed releasesIdempotence with upgrade --install
An idempotent command gives the same result whether you run it once or ten times. It is the property that lets an automated deployment avoid knowing whether the application already exists, and therefore avoid carrying fragile conditional logic.
The problem in CI/CD
In CI/CD, you do not always know whether the release already exists:
- First deployment: the release does not exist,
installworks - Following deployments: the release exists,
installfails
The solution: upgrade --install
The --install option makes helm upgrade idempotent: the command creates the release if it does not exist, or updates it if it does.
The two examples below use a release demo in the helm-demo namespace. The same command is run twice, with a different chart version the second time:
helm upgrade --install demo podinfo/podinfo -n helm-demo --version 6.16.0If the release does not exist:
Release "demo" does not exist. Installing it now.NAME: demoLAST DEPLOYED: Tue Nov 17 06:11:05 2026NAMESPACE: helm-demoSTATUS: deployedREVISION: 1DESCRIPTION: Install completehelm upgrade --install demo podinfo/podinfo -n helm-demo --version 6.17.0If the release already exists:
Release "demo" has been upgraded. Happy Helming!NAME: demoLAST DEPLOYED: Tue Nov 17 06:11:05 2026NAMESPACE: helm-demoSTATUS: deployedREVISION: 2DESCRIPTION: Upgrade completeLook at the DESCRIPTION line: Install complete on the first run, Upgrade complete on the second. It is the line that says what Helm actually did.
In a deployment pipeline, always write helm upgrade --install. The command can be replayed as many times as needed without failing on the previous state. The same pipeline thus serves a new environment and a production update, with no condition or switch variable.
Additional options for CI/CD
These five options are meant for deployment pipelines. --wait waits 5 minutes by default: set --timeout to what your pipeline can tolerate, because a delay that is too long blocks the pipeline and a delay that is too short makes a healthy deployment fail.
| Option | Effect |
|---|---|
--create-namespace | Creates the namespace if it does not exist |
--wait | Waits until the Pods are Ready before finishing |
--timeout 5m | Timeout for --wait (default: 5m) |
--rollback-on-failure | Automatic rollback if the upgrade fails |
--description "v1.2.3" | Custom description in the history |
Complete CI/CD command:
helm upgrade --install my-api podinfo/podinfo \ --namespace demo \ --create-namespace \ --version 6.16.0 \ --wait \ --timeout 3m \ --description "Deploy v6.16.0 from CI"Updating with helm upgrade
An upgrade can change two independent things: the values, that is your configuration, and the chart version, that is the template itself. Telling them apart is essential for diagnosis, since the first case is about your files and the second about what the author of the chart published.
Updating the values
First case: the chart does not move, only your configuration changes. Trap of the partial override: a --set does not take over the values of the previous revision, it starts again from the chart defaults. Everything you do not pass again therefore goes back to its original value.
To change the configuration of an existing release:
helm upgrade my-api podinfo/podinfo -n demo --set replicaCount=2Result:
Release "my-api" has been upgraded. Happy Helming!NAME: my-apiLAST DEPLOYED: Tue Nov 17 08:08:00 2026NAMESPACE: demoSTATUS: deployedREVISION: 3DESCRIPTION: Upgrade completeThe release my-api was already at revision 2, after an upgrade --install on chart 6.16.0: this upgrade therefore creates revision 3. A trap hides in this command, explained right after: it does not specify --version.
Updating the chart version
To move to a new chart version:
helm upgrade my-api podinfo/podinfo -n demo --version 6.17.0Without --version, helm upgrade takes the latest version of the chart published in the repository, not the one of the current revision. That is what happened on the previous upgrade: the release was running chart 6.16.0, and revision 3, launched with only --set replicaCount=2, moved to chart 6.17.0. helm history shows it in the CHART column (see below). To change only the values, pass the version of the current chart again with --version.
The rule of the previous section also applies to a version bump: as soon as helm upgrade receives a value (--set or -f), it starts again from the values of the chart and forgets your overrides. It prints no message. The command above passes no value, so Helm takes those of the previous revision.
To keep your overrides during a version bump, export them with helm get values -o yaml, save the result in a file and pass it again with -f. --reset-then-reuse-values is another route. Avoid --reuse-values in this case: it also keeps the default values of the old chart. The keys added by the new chart then do not get their default, and image.tag can stay on the old version. The --reuse-values section of the Values lesson details this case.
The only object the upgrade ignores: CRDs
helm upgrade never updates a CRD shipped in the crds/ folder of a chart. It installs them with the first release, then ignores them forever, whatever their evolution in the following versions of the chart.
The consequence is hard to diagnose, because nothing fails. Bump a version of an operator chart that adds a field to its CRD: the upgrade returns deployed, the templates are applied, and yet your manifests that use the new field are silently stripped, because the API server validates against the old schema. You look for the error in your YAML when it sits in an object that Helm decided not to touch.
The check takes one command, to run after any version bump of a chart that embeds CRDs:
kubectl get crd widgets.example.com -o jsonpath='{.spec.versions[*].name}'The update is done outside Helm, and this is a deliberate choice of the project: applying a CRD can break existing resources, and Helm refuses to take that responsibility on your behalf.
# Extract the CRD from the new version of the chart, then apply it yourselfhelm pull <repo>/<operator-chart> --version <new-version> --untar --untardir /tmp/chartkubectl apply --server-side -f /tmp/chart/<operator-chart>/crds/The names between angle brackets are to be replaced with those of an operator chart that embeds a crds/ folder. The podinfo chart of this guide has none: helm pull podinfo/podinfo --version 6.17.0 --untar gives Chart.yaml, templates, values.yaml and nothing else at the root, and ls podinfo/crds answers No such file or directory. It therefore cannot illustrate this step.
Reread the CRD before applying it: a field removed from the schema makes the resources that still used it invalid.
Who owns the lifecycle of CRDs
The crds/ folder exists because CRDs are not resources like the others. They must be present before the objects that rely on them, yet Helm applies its whole rendering in one pass, sorted by kind. The crds/ folder solves this ordering: Helm installs it first, even before the templates, without running it through the rendering engine. A CRD in it is therefore never a template: no {{ }}, no values. The page CRD and Helm: who owns the lifecycle? covers this topic in detail, with tests to back it up.
This separate handling explains the three behaviors that surprise people, and that you should know before choosing:
| Moment | What Helm does with the CRDs of crds/ |
|---|---|
install | applies them first, without template rendering |
upgrade | does not touch them, whatever their evolution |
uninstall | keeps them, with all their instances |
The --skip-crds option lets you not install them at all. Checked: the CRD is then simply absent from the cluster:
helm install my-operator ./chart --skip-crdskubectl get crd widgets.example.comError from server (NotFound): customresourcedefinitions.apiextensions.k8s.io"widgets.example.com" not foundThis is not a convenience option: it is an organizational decision. It answers the question of who owns the CRDs in your cluster.
Two models coexist, and the worst is not to choose. In the first, the chart carries them: simple for a cluster belonging to a single team, but every release that installs the operator legitimately believes it owns them. In the second, the platform applies them outside Helm, with kubectl apply from a dedicated repository, and all the charts are installed with --skip-crds. This second model becomes necessary as soon as several teams deploy operators on the same cluster, because a CRD is shared by the whole cluster whereas a release is not.
The confusing case: two charts embed the same CRD in different versions. The second one installed overwrites nothing: Helm ignores CRDs on upgrade and refuses to recreate an object that already exists. You then get a cluster whose CRD matches the first chart installed, and a second operator that fails on fields absent from that CRD.
What makes the case costly is that nothing signals it on the Helm side: both releases are deployed, no command warns you. The diagnosis is done in the cluster, with kubectl get crd <name> -o yaml, by comparing the versions served with those expected by the operator that fails.
When a hook fails during the upgrade
A chart can run code before applying its resources, through a helm.sh/hook annotation on a Job: schema migration, cache warm-up, prerequisite check. If this Job fails, the upgrade stops, and the message names the culprit precisely:
Error: UPGRADE FAILED: pre-upgrade hooks failed: resource Job/demo/migrationnot ready. status: Failed, message: Job Failed. failed: 1/1Three questions then arise, and the answers are more reassuring than you might think.
Was my application modified? No, if the hook was a pre-upgrade. It runs before Helm applies anything: the resources in place have not moved. That is the whole point of this family of hooks, and the reason to prefer pre-upgrade over post-upgrade for a blocking check.
What state is the release in? The history carries the trace of the failure, and the previous revision remains the reference:
REVISION STATUS DESCRIPTION1 deployed Install complete2 failed Upgrade "my-api" failed: pre-upgrade hooks failed: ...Do I need to repair by hand? Not in this case either. Once the cause is fixed, an ordinary helm upgrade is enough: it creates a revision 3 that starts again from the healthy state. No need to remove the release, no need to force anything.
One detail is worth knowing: the Job of the hook stays in the cluster after it ran, whether it succeeded or not. It is handy for diagnosis, because its logs say why the migration failed:
kubectl logs -n demo job/migrationWithout an annotation, Helm applies before-hook-creation: it deletes the Job of the previous run just before creating a new one, so only one Job remains at a time. The helm.sh/hook-delete-policy annotation changes this fate, and the choice is between diagnostic comfort and tidiness:
| Value | Effect |
|---|---|
before-hook-creation | default policy: deletes the Job of the previous run before creating a new one, and therefore keeps the last Job for diagnosis |
hook-succeeded | deletes the Job if it succeeded, and therefore keeps the ones that failed |
hook-failed | the opposite, rarely what you want |
When an API in the manifest no longer exists in the cluster
This is a confusing blockage, because nothing warns you before it is too late. Helm keeps in the release the manifest as it applied it. If an apiVersion found in it disappears from the cluster, because a version bump removed it or because a CRD was deleted, Helm can no longer rebuild the current state.
The symptom is misleading at first, because the release looks perfectly healthy:
helm list -n demoNAME NAMESPACE REVISION STATUS CHARTr1 demo 1 deployed ad-0.1.0Then everything fails. Not only the update:
Error: UPGRADE FAILED: resource mapping not found for name: "my-gadget" namespace: ""from "": no matches for kind "Gadget" in version "audit.example.invalid/v1"ensure CRDs are installed firstThe rollback does not save you, contrary to what instinct suggests:
Error: unable to build kubernetes objects from current release manifest:resource mapping not found for name: "my-gadget" ...And neither does the uninstallation:
Error: failed to delete release: r1The release is a prisoner: no update, no rollback, no removal. Three commands out of three refuse, because all of them start by rereading the stored manifest.
The diagnosis takes one command, and it is the only one that still works:
helm get manifest r1 -n demo | grep -E '^apiVersion|^kind'It prints exactly what Helm tries to rebuild, the faulty apiVersion included. Compare it with what the cluster knows:
kubectl api-resources | grep -i gadgetThe way out of the crisis is to make the API available again, long enough to unblock the release. Reapplying the CRD is enough, checked: the upgrade goes through immediately, the revision advances, and uninstall becomes possible again.
kubectl apply -f crds/gadget.yamlhelm upgrade r1 ./chart -n demoPrevention is much more comfortable than the cure. Before any cluster version bump, review what your releases actually applied:
for r in $(helm list -n demo -q); do echo "== $r" helm get manifest "$r" -n demo | grep '^apiVersion' | sort -udoneThis loop shows the apiVersion values inherited from an old deployment: the current chart may no longer use them, but the release keeps them in memory.
The --force-replace option
In Helm v4, the flag is called --force-replace: it deletes and recreates the resources instead of patching them. The old name --force is still accepted, with a deprecation warning on every run.
But with Helm 4.3.2, the following command fails on a release applied with Server-Side Apply, which is the default:
helm upgrade my-api podinfo/podinfo -n demo --set replicaCount=1 --force-replacelevel=WARN msg="upgrade failed" name=my-api error="invalid operation: cannot use server-side apply and force replace together"Error: UPGRADE FAILED: invalid operation: cannot use server-side apply and force replace togetherHelm refuses to combine the two modes before touching the cluster, but it still records the attempt: helm history shows one more failed revision, and the previous revision stays deployed. The example above only shows this refusal. For the behavior of --force-replace on a release applied on the client side, refer to the documentation of helm upgrade.
The flag targets situations where a patch cannot succeed: changing an immutable field, such as the selector of a Deployment, a corrupted resource that a partial update does not repair, and debugging a synchronization problem between the stored state and the cluster.
When an immutable field is the cause, the error starts with server-side apply failed for object and ends with field is immutable. This prefix comes from Server-Side Apply, the default application mode of Helm 4: the cause is the field, not the prefix.
Do not confuse it with --force-conflicts, which has a similar name and does something entirely different: it takes ownership of fields managed by another actor in Server-Side Apply, without recreating anything.
Checking the state: status, get, history
Three commands, three different questions, and mixing them up wastes time during an incident. helm status answers "where does this release stand right now", helm history answers "what has it been through", and helm get answers "what was actually sent to the cluster".
helm status: current state of the release
This is the command to type first: in six lines, it says when, where, which revision and in what state the release is. With Helm v4.3.2, it then adds the RESOURCES block (the Service, the Deployment and the related Pods, with their state), then the chart's NOTES, often overlooked even though they contain the commands to reach the application. The --show-resources flag no longer exists and answers Error: unknown flag: --show-resources.
The output below comes from a demo release of the podinfo chart, installed in the helm-demo namespace, with Helm v4.3.2.
helm status demo -n helm-demoResult:
NAME: demoLAST DEPLOYED: Tue Nov 17 06:10:37 2026NAMESPACE: helm-demoSTATUS: deployedREVISION: 1DESCRIPTION: Install completeRESOURCES:==> v1/ServiceNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGEdemo-podinfo ClusterIP 10.102.177.99 <none> 9898/TCP,9999/TCP 2s
==> v1/DeploymentNAME READY UP-TO-DATE AVAILABLE AGEdemo-podinfo 1/1 1 1 2s
==> v1/Pod(related)NAME READY STATUS RESTARTS AGEdemo-podinfo-5649799496-fgqcw 1/1 Running 0 2s
NOTES:1. Get the application URL by running these commands: echo "Visit http://127.0.0.1:8080 to use your application" kubectl -n helm-demo port-forward deploy/demo-podinfo 8080:9898No TEST SUITE line appears as long as no helm test has run on the release. After a helm test, a TEST SUITE, Last Started, Last Completed, Phase block is added for each test, between RESOURCES and NOTES.
Breakdown:
| Field | Meaning |
|---|---|
LAST DEPLOYED | Date and time of the last deployment |
STATUS | Current state (deployed, failed, etc.) |
REVISION | Number of the current revision |
DESCRIPTION | What Helm did during this revision (Install complete, Upgrade complete) |
RESOURCES | State of the Service, the Deployment and the related Pods |
NOTES | Post-installation instructions of the chart |
helm status for a specific revision
You can look at the state of a past revision:
helm status my-api -n demo --revision 1Result:
NAME: my-apiLAST DEPLOYED: Tue Nov 17 08:07:59 2026NAMESPACE: demoSTATUS: supersededREVISION: 1DESCRIPTION: Install completeRESOURCES:==> v1/ServiceNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGEmy-api-podinfo ClusterIP 10.102.203.42 <none> 9898/TCP,9999/TCP 1s
==> v1/DeploymentNAME READY UP-TO-DATE AVAILABLE AGEmy-api-podinfo 0/2 2 0 1s
==> v1/Pod(related)NAME READY STATUS RESTARTS AGEmy-api-podinfo-7f8594c87-vc72p 0/1 ContainerCreating 0 0smy-api-podinfo-7f8594c87-vmmt2 0/1 Terminating 0 1smy-api-podinfo-86cf4c6df6-8bwv7 0/1 ContainerCreating 0 0smy-api-podinfo-86cf4c6df6-zll9c 0/1 ContainerCreating 0 0sThe superseded status indicates that this revision was replaced by a more recent one. The RESOURCES block does not show the objects of revision 1 for all that: it shows the current state of the cluster. Revision 1 had no value, hence a single replica, whereas the Deployment shown here has 2, those of the current revision. To reread what an old revision contained, use helm get values --revision and helm get manifest --revision. Here is an example on another release my-api, outside the sequence of revisions of this page: its revision 1 was on 6.17.0 with one replica, its revision 4 on 6.16.0 with two replicas. The excerpt keeps only the replicas: lines, which are enough to see the difference between the two revisions:
$ helm get manifest my-api -n demo --revision 1 | grep 'replicas:' replicas: 1$ helm get manifest my-api -n demo | grep 'replicas:' replicas: 2Without --revision, the command reads the current revision.
helm history: revision history
The history is what makes the rollback possible. It is read from top to bottom, the most recent revision last. The current state is the deployed line: after a failure, the last line can be failed while the previous one stays deployed. During an incident, read the DESCRIPTION column: it carries the failure message of the faulty revision, often truncated but enough to point you in the right direction.
helm history my-api -n demoResult:
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION1 Tue Nov 17 08:07:59 2026 superseded podinfo-6.16.0 6.16.0 Install complete2 Tue Nov 17 08:07:59 2026 superseded podinfo-6.16.0 6.16.0 Upgrade complete3 Tue Nov 17 08:08:00 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete4 Tue Nov 17 08:08:00 2026 deployed podinfo-6.17.0 6.17.0 Upgrade completeLook at the CHART column: revision 3 is already on 6.17.0, although the command only asked for a --set replicaCount=2. That is the trap of helm upgrade without --version.
Breakdown of each column:
| Column | Content |
|---|---|
REVISION | Incremental number of the revision |
UPDATED | Date and time of this revision |
STATUS | deployed (current), superseded (old), failed |
CHART | Name and version of the chart used |
APP VERSION | Version of the application (defined in Chart.yaml) |
DESCRIPTION | Origin: Install complete, Upgrade complete, Rollback to X |
The helm get commands
Helm offers several get commands to inspect the details of a release:
| Command | Content |
|---|---|
helm get values | Custom values (overrides) |
helm get values --all | All the values (defaults + overrides) |
helm get manifest | Generated Kubernetes manifests |
helm get notes | Post-installation notes |
helm get hooks | Hooks of the release |
helm get all | Everything above |
Example: see the values of a previous revision
helm get values my-api -n demo --revision 1Result:
USER-SUPPLIED VALUES:nullRevision 1 had no override.
helm get values my-api -n demo --revision 3Result:
USER-SUPPLIED VALUES:replicaCount: 2Revision 3 added replicaCount: 2.
Limiting the history with --history-max
By default, Helm keeps the last 10 revisions. In CI/CD with frequent deployments, the history can grow large. The --history-max flag exists on helm upgrade, therefore also on helm upgrade --install, as well as on helm rollback, but not on helm install.
helm upgrade my-api podinfo/podinfo -n demo --history-max 3This option automatically purges the oldest revisions to keep only 3:
helm history my-api -n demoResult: the release had 4 revisions, the upgrade creates a fifth one, and Helm deletes the oldest ones to keep only 3. Revisions 1 and 2 are gone:
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION3 Tue Nov 17 08:08:00 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete4 Tue Nov 17 08:08:00 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete5 Tue Nov 17 08:08:01 2026 deployed podinfo-6.17.0 6.17.0 Upgrade completeThe setting is a trade-off, not an optimization. Every revision kept is one more Secret in the namespace, hence space in etcd; every revision deleted is one rollback fewer. Keep the default value as long as the space used is not a problem, and lower it knowingly: a rollback to a very old revision is rarely desirable, because the configuration gap has become large.
Rollback: going back
The rollback is the reason the revision history exists. Helm does not replay your chart: it reapplies the stored manifest of the target revision, which makes it fast and independent of the state of your files. The price of this speed is that it fixes nothing outside what the release manages.
When should you roll back?
The rollback is your safety net when an upgrade degrades the application: it restores a known stable state without replaying a complete deployment. The situations below share the same signal: the current state is broken and a previous revision worked.
- The application no longer works after an upgrade
- The Pods are in CrashLoopBackOff
- The metrics show rising errors
- You need to get back to a stable state quickly
Rollback to a specific revision
helm rollback my-api 3 -n demoResult:
Rollback was a success! Happy Helming!Check the history after the rollback:
helm history my-api -n demoResult:
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION3 Tue Nov 17 08:08:00 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete4 Tue Nov 17 08:08:00 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete5 Tue Nov 17 08:08:01 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete6 Tue Nov 17 08:08:01 2026 deployed podinfo-6.17.0 6.17.0 Rollback to 3The rollback created revision 6, described as "Rollback to 3", instead of going back to revision 3 itself. Helm erases nothing from the history: it adds a line to it. The trace of the rollback therefore stays auditable, and you can go forward again with a rollback to the revision you have just left.
Rollback to the previous revision (no number)
Without a number, Helm targets the revision that precedes the current one (N-1). Here the current revision is 6, so the rollback restores the configuration of 5 and creates revision 7:
helm rollback my-api -n demoResult:
Rollback was a success! Happy Helming!helm history my-api -n demoResult:
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION...6 Tue Nov 17 08:08:01 2026 superseded podinfo-6.17.0 6.17.0 Rollback to 37 Tue Nov 17 08:08:01 2026 deployed podinfo-6.17.0 6.17.0 Rollback to 5The calculation is done on the number, not on the status: revision N-1 can be a failed attempt. Here is a consequence, which follows from this rule: after the automatic rollback of the --rollback-on-failure section (revision 9, which takes over 7), a helm rollback without a number would target revision 8, hence the failed attempt. In production, always give the number of the healthy revision, read from helm history.
Rollback: what is restored
During a rollback, Helm restores:
| Element | Restored? |
|---|---|
| Values (configuration) | Yes |
| Chart version | Yes |
| Generated templates | Yes |
| Kubernetes resources | Yes (recreated/patched) |
| PVC data | No (persistent) |
| Database data | No (external) |
Error: nonexistent revision
helm rollback my-api 99 -n demoResult:
Error: release has no 99 versionCheck helm history to see the available revisions.
Rollback options
The rollback accepts several options shared with upgrade. The one to know in production is --wait: without it, the command returns as soon as Helm has submitted the manifests, before the Pods have restarted, which gives a false sense of success. Keep --force-replace for cases where a patch is not enough, because it causes an outage.
With Helm 4.3.2, --force-replace is refused on a release applied with Server-Side Apply, as for upgrade:
$ helm rollback my-api 1 -n demo --force-replacelevel=WARN msg="Rollback \"my-api\" failed: invalid operation: cannot use server-side apply and force replace together"Error: invalid operation: cannot use server-side apply and force replace togetherThe attempt leaves a failed revision in helm history (here the 5th, with the description Rollback "my-api" failed: invalid operation: ...). The same rollback without the option succeeds: Rollback was a success! Happy Helming!, revision 6 Rollback to 1.
| Option | Effect |
|---|---|
--wait | Waits until the Pods are Ready |
--timeout 5m | Timeout for --wait |
--force-replace | Deletes and recreates the resources (the old name --force is still accepted, with a warning) |
Removing with helm uninstall
Removing a release is less complete than it seems: some objects deliberately survive the command, CRDs first and foremost. This section first shows the ordinary removal, then what it leaves behind.
Standard removal
Without an option, helm uninstall deletes the resources and the revision history, which frees the name of the release. This is the wanted behavior in a test environment; in production, the variant that keeps the history deserves consideration.
helm uninstall my-api -n demoResult:
release "my-api" uninstalledThis command deletes:
- The Kubernetes resources that Helm rendered from
templates/ - The record of the release and the revision history, that is the revision Secrets of the namespace
What SURVIVES an uninstall
uninstall does not delete everything around the release, and the command does not warn you. It prints release "my-api" uninstalled and returns, leaving behind objects that no release claims any more.
The first case to know concerns custom resource definitions (CRDs). A CRD shipped in the crds/ folder of a chart is never deleted by helm uninstall: it stays in the cluster, with the objects it describes. This is deliberate on Helm's part, because deleting a CRD destroys all the resources of that kind at once, including those created by other teams.
| Object | Fate after helm uninstall |
|---|---|
Resources rendered from templates/ | deleted |
CRD from the crds/ folder | kept, and you must delete it by hand |
| Objects created by an operator, outside the chart | kept |
Namespace created by --create-namespace | kept |
The useful check therefore does not stop at the namespace:
helm list -n demokubectl get all -n demokubectl get crd | grep my-operatorDeleting a CRD is a destructive and irreversible operation: it takes away all its instances in the cluster, including those created by other teams. Run it only after counting what still depends on it.
# ❌ Never run this without counting the instances firstkubectl delete crd widgets.example.comKeeping the history with --keep-history
To keep a trace of the removed release:
helm uninstall my-api -n demo --keep-historyResult:
release "my-api" uninstalledIn this example, the release went through the whole sequence of this guide, hence its revision number. It appears with the uninstalled status. In Helm 4, helm list without options shows the releases of all statuses, including this one; --uninstalled keeps only the releases removed with their history.
helm list -n demo --uninstalledResult:
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSIONmy-api demo 11 2026-11-17 08:08:35.84775228 +0000 UTC uninstalled podinfo-6.17.0 6.17.0The history can still be read:
helm history my-api -n demoResult:
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION...10 Tue Nov 17 08:08:35 2026 superseded podinfo-6.17.0 6.17.0 Ticket JIRA-1234 - Add health check11 Tue Nov 17 08:08:35 2026 uninstalled podinfo-6.17.0 6.17.0 Uninstallation completeThis is the option to remember for auditing: it keeps the trace of what was deployed and when, even after the application is removed. In return, the name of the release stays reserved in the namespace, and a reinstallation under the same name will fail until the history has been purged.
Filtering releases by status
Without an option, helm list shows the releases of all statuses: deployed, failed, removed with --keep-history, pending. As soon as a status filter is given, only the requested statuses remain. A line in helm list therefore does not prove that an application is running. The filters are for diagnosis: --failed isolates failed deployments in the middle of a long list, and --uninstalled finds the trace of an erased release whose history you want to read.
# All releases, whatever the status (default)helm list -n demo
# Only the deployed releaseshelm list -n demo --deployed
# Only the failed releaseshelm list -n demo --failed
# Removed releases (with --keep-history)helm list -n demo --uninstalled
# Revisions replaced by a more recent onehelm list -n demo --supersededWhat is NOT removed
Besides the CRDs and the namespace seen above, two other categories of objects stay in place after helm uninstall. The table says why.
| Resource | Why |
|---|---|
| PersistentVolumeClaims of a StatefulSet | Created by volumeClaimTemplates, they are managed by Kubernetes and not by Helm. An ordinary PVC, on the other hand, is deleted by default: annotate it helm.sh/resource-policy: keep to keep it |
| Resources created manually | Not managed by Helm |
To delete the namespace and all its content:
kubectl delete namespace demoAdvanced options for production
These options are of little use in manual exploration, but they change everything in an automated pipeline, where nobody watches the output. They make Helm's behavior predictable in the face of a failure, instead of leaving a release half applied.
--rollback-on-failure: automatic rollback on failure
In Helm v4, the flag is called --rollback-on-failure. It combines waiting for the resources and an automatic rollback if the deployment fails. Its old name, --atomic, is still accepted but prints a deprecation warning.
helm upgrade --install my-api podinfo/podinfo \ -n demo \ --set image.tag=nonexistent \ --rollback-on-failure \ --timeout 30sIf the resources do not become ready within the allotted time, Helm starts again from the previous revision. Here is what an upgrade that points to a nonexistent image gives, on a healthy release at revision 7:
Error: UPGRADE FAILED: release my-api failed, and has been rolled back due to rollback-on-failure being set: resource Deployment/demo/my-api-podinfo not ready. status: InProgress, message: Available: 0/1context deadline exceeded8 failed Upgrade "my-api" failed: resource Deployment/demo/my-api-podinfo not ready. status: InProgress, message: Available: ...9 deployed Rollback to 7The failure therefore creates two revisions, the failed attempt then the rollback, and the image actually deployed goes back to the original one. With the old name, the result is the same, preceded by the deprecation warning (Helm 4.3.2, 45 s timeout):
$ helm upgrade my-api podinfo/podinfo --version 6.17.0 -n demo --set image.tag=nonexistent --atomic --timeout 45sFlag --atomic has been deprecated, use --rollback-on-failure insteadlevel=WARN msg="upgrade failed" name=my-api error="resource Deployment/demo/my-api-podinfo not ready. status: InProgress, message: Available: 0/1\ncontext deadline exceeded"Error: UPGRADE FAILED: release my-api failed, and has been rolled back due to rollback-on-failure being set: resource Deployment/demo/my-api-podinfo not ready. status: InProgress, message: Available: 0/1context deadline exceededhelm history then gives revision 1 superseded, 2 failed (the attempt) and 3 deployed with Rollback to 1. Note that the message mentions rollback-on-failure even when you wrote --atomic: Helm renamed the flag, not the mechanism.
--dry-run: preview before applying
helm upgrade my-api podinfo/podinfo -n demo --set replicaCount=5 --dry-run=clientAlways give the value explicitly: --dry-run without a value is equivalent to --dry-run=client with a deprecation warning. With --dry-run=server, Helm queries the cluster but only reads: it applies nothing, and neither the schema of the objects, nor the admission checks, nor the quotas are exercised. A successful simulation therefore does not guarantee that the real upgrade will go through.
The command above prints the manifests that would be generated without applying them. Here is the beginning of its output, for a release at revision 7, before the --rollback-on-failure test of the previous section, which then took numbers 8 and 9:
Release "my-api" has been upgraded. Happy Helming!NAME: my-apiLAST DEPLOYED: Tue Nov 17 08:08:02 2026NAMESPACE: demoSTATUS: pending-upgradeREVISION: 8DESCRIPTION: Dry run completeHOOKS:The first line is misleading: it announces "has been upgraded. Happy Helming!" when nothing has changed. The two lines to read are STATUS: pending-upgrade and DESCRIPTION: Dry run complete. Check with helm status:
NAME: my-apiLAST DEPLOYED: Tue Nov 17 08:08:01 2026NAMESPACE: demoSTATUS: deployedREVISION: 7DESCRIPTION: Rollback to 5The release stayed at revision 7, deployed, and the next real upgrade did get number 8: the simulation consumed no revision.
JSON/YAML output for automation
# List of releases in JSONhelm list -n demo -o json
# History in YAMLhelm history my-api -n demo -o yamlUseful for parsing the results in scripts.
Custom description
The description is the only free field in the history of a release. Writing the application version, the ticket or the CI identifier in it turns helm history into an operations log that is still readable months later.
Add a description to trace the deployments:
helm upgrade --install my-api podinfo/podinfo \ -n demo \ --description "Ticket JIRA-1234 - Add health check"helm history my-api -n demoResult:
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION...9 Tue Nov 17 08:08:32 2026 superseded podinfo-6.17.0 6.17.0 Rollback to 710 Tue Nov 17 08:08:35 2026 deployed podinfo-6.17.0 6.17.0 Ticket JIRA-1234 - Add health checkThe same description appears on the DESCRIPTION line of helm status, in place of Upgrade complete.
Command summary table
This table sums up the lifecycle: keep it handy. If you had to remember a single line, it would be helm upgrade --install, the command that works on the first deployment as on the following ones, and therefore the one to put in a pipeline. Replayable does not mean without effect: every run creates one more revision.
| Command | Effect |
|---|---|
helm install <name> <chart> | Creates a new release (error if it exists) |
helm upgrade <name> <chart> | Updates an existing release (error if it does not exist) |
helm upgrade --install <name> <chart> | Creates or updates (idempotent) |
helm status <name> | Shows the current state of the release |
helm history <name> | Lists all the revisions |
helm get values <name> | Shows the custom values |
helm get manifest <name> | Shows the Kubernetes manifests |
helm rollback <name> [revision] | Goes back to the given revision, or to N-1 without a number |
helm uninstall <name> | Removes the release, its history and its resources (except the CRDs of crds/); --keep-history keeps the history |
Troubleshooting
The first two symptoms are settled by the same command, upgrade --install. The following ones call for a diagnosis in the history of the release or in the cluster.
| Symptom | Probable cause | Solution |
|---|---|---|
cannot reuse a name | The release already exists | Use upgrade --install |
has no deployed releases | The release does not exist | Use upgrade --install |
release has no X version | Nonexistent revision | Check with helm history |
cannot use server-side apply and force replace together | --force-replace (or --force) requested on a release applied with Server-Side Apply | Remove the flag; the attempted revision stays failed in the history |
failed in helm history, while the previous revision stays deployed | An upgrade failed: failing hook, timeout exceeded or object rejected by the API server | Read the DESCRIPTION column, fix the cause, rerun helm upgrade |
no matches for kind on upgrade, rollback and uninstall | An apiVersion of the stored manifest has disappeared from the cluster | Reapply the CRD or the API, then rerun the command |
| Pods in Pending after a rollback | Insufficient resources | Check the quotas/nodes |
| PVC still present after uninstall | Normal behavior | Delete manually if desired |
Lab: faulty upgrade then rollback
This lab chains the three moments that matter: a healthy release, a faulty upgrade, then the rollback. Play it on a test cluster, watching helm history after each step: it is the history, more than the Pods, that tells what Helm did.
-
Install a stable release
Terminal window kubectl create namespace helm-labhelm install my-api podinfo/podinfo -n helm-lab --version 6.17.0 -
Check the initial state
Terminal window helm history my-api -n helm-labkubectl get pods -n helm-lab -
Do a first upgrade (visible change)
Terminal window helm upgrade my-api podinfo/podinfo -n helm-lab --set replicaCount=3 --set ui.message="Version 2" -
Observe the new revision
Terminal window helm history my-api -n helm-labhelm get values my-api -n helm-lab -
Simulate a problem (nonexistent image)
Terminal window helm upgrade my-api podinfo/podinfo -n helm-lab --set image.tag=wrong-version -
Observe the broken state
Terminal window kubectl get pods -n helm-lab# One or more Pods in ImagePullBackOff -
Roll back to the stable revision
Terminal window helm rollback my-api 2 -n helm-lab -
Check the return to normal
Terminal window helm history my-api -n helm-labkubectl get pods -n helm-lab# All the Pods Running -
Clean up
Terminal window helm uninstall my-api -n helm-labkubectl delete namespace helm-lab
Here is what you should observe with Helm v4.3.2. At step 5, helm upgrade announces a success although the image does not exist:
Release "my-api" has been upgraded. Happy Helming!NAME: my-apiLAST DEPLOYED: Tue Nov 17 08:08:49 2026NAMESPACE: helm-labSTATUS: deployedREVISION: 3DESCRIPTION: Upgrade completeWithout --wait, Helm does not look at the state of the Pods: it says deployed as soon as the objects are accepted. Step 6 shows the problem:
NAME READY STATUS RESTARTS AGEmy-api-podinfo-6bcc555d8b-6z2vl 0/1 ImagePullBackOff 0 20sAfter the rollback of step 7, the history has one more revision and the three replicas of revision 2 are running:
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION1 Tue Nov 17 08:08:42 2026 superseded podinfo-6.17.0 6.17.0 Install complete2 Tue Nov 17 08:08:44 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete3 Tue Nov 17 08:08:49 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete4 Tue Nov 17 08:09:09 2026 deployed podinfo-6.17.0 6.17.0 Rollback to 2NAME READY STATUS RESTARTS AGEmy-api-podinfo-5bcf6777b9-dg7cz 1/1 Running 0 15smy-api-podinfo-5bcf6777b9-fvhlt 1/1 Running 0 12smy-api-podinfo-5bcf6777b9-gk5bd 1/1 Running 0 15sSuccess criteria:
-
helm historyshows at least 4 revisions - You identify the faulty revision
- The rollback brings the Pods back to Running
- You understand the relationship between revision and configuration
Key takeaways
helm upgrade --installis the idempotent command for CI/CD- Every operation creates a new revision in the history, a rollback or a failure included: the number never goes down
helm historylets you read all the revisionshelm upgradewithout--versiontakes the latest chart version: give the current version if you only want to change the valueshelm upgrade --dry-run=clientprints "has been upgraded" andSTATUS: pending-upgradewithout changing anything: readDESCRIPTION: Dry run complete--force-replaceis refused when the release is applied with Server-Side Applyhelm rollbackcreates a new revision with the old config; without a number, it targets N-1, which can be afailedattempthelm uninstalldeletes the resources rendered by the templates, but not the CRDs ofcrds/nor the PVCs of StatefulSetshelm upgradenever updates the CRDs ofcrds/: apply them yourself- An upgrade that only passes a
--setstarts again from the default values of the chart: pass all your-ffiles again, or export your values withhelm get values -o yamlto pass them again with-f - Use
--rollback-on-failurein production for an automatic rollback on failure - Limit the history with
--history-max(10 by default) to avoid accumulation
Knowledge check
Nine questions, drawn at random from the bank of the lesson, cover what Helm does and does not do: what a rollback writes into the history, the CRDs that an upgrade ignores and that an uninstall keeps, the effect of --skip-crds, the state of a release after a hook failure, the blockage when an apiVersion disappears, or the revision targeted by a helm rollback run without a number.
Knowledge check
Check what you have learned with this interactive quiz
How it works
- The timer starts when you click Start
- Multiple choice, true/false and short answer questions
- You can move between questions
- Detailed results are shown at the end
Starts the quiz and the timer
Review
(0/0)Result saved on this device. It will be sent to your account at the next sync. Sync now
Score by domain
A domain groups several guides and gets several questions, so its score is more reliable than a per-topic score, which often rests on a single question.
Summary
Strengths
No topic passed at 80% on at least two questions yet.
Weak areas
No topic below the pass mark.
Recommended next
Hints before you try again?
A new full quiz with random questions
Work again only on the questions you missed