Skip to content
Français
Sync not enabled: your progress stays in this browser My learning
Select theme
Français

Helm lifecycle: upgrade, history, rollback and uninstall

57 min read
Improve this page

Logo Helm

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 install and upgrade, 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, kind for this training
  • An understanding of helm install and 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:

StateMeaningWhen?
deployedActive and working releaseAfter a successful install or upgrade
supersededOld revision that was replacedAfter a new upgrade or rollback
pending-installInstallation in progressWhile helm install is running
pending-upgradeUpdate in progressWhile helm upgrade is running; an interrupted client can leave the release in this state (see Debugging Helm)
failedThe operation failedIf a hook fails, if the timeout (--timeout) is exceeded, or if the API server rejects an object of the chart
pending-rollbackRollback in progressWhile helm rollback is running; becomes deployed if the rollback succeeds, failed otherwise
uninstalledRelease 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.

Life of a Helm revision. An operation in progress (pending-install, pending-upgrade or pending-rollback) goes to deployed on success, or to failed on failure or timeout. A deployed revision becomes superseded when a new revision takes its place, uninstalled after uninstall with --keep-history, or disappears without a trace after an ordinary uninstall.successfailure or timeouta new revisiontakes overuninstall --keep-historyuninstallsuccessfailurepending-installpending-upgradeoperation in progresspending-rollbackrollback in progressdeployedcurrent statefailedoperation failedsupersededreplaceduninstalledremoved, history keptNo trace lefthistory deleted
Source · SVG
Esc to close, + and − to zoom, scroll to move around. 100 %

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 → superseded
Revision 2 (upgrade) → deployed → superseded
Revision 3 (upgrade) → deployed → superseded
Revision 4 (rollback 2) → deployed ← CURRENT

A 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:

RevisionOperationSection
1helm install of chart 6.16.0Demo: the install error
2helm upgrade --install on chart 6.16.0, without --wait or --descriptionAdditional options for CI/CD
3helm upgrade --set replicaCount=2, without --version: the chart moves to 6.17.0Updating the values
4helm upgrade --version 6.17.0Updating the chart version
5helm upgrade --history-max 3Limiting the history
6helm rollback my-api 3Rollback to a specific revision
7helm rollback my-api, without a numberRollback to the previous revision
8upgrade with a nonexistent image and --rollback-on-failure: failed--rollback-on-failure
9automatic rollback, Rollback to 7--rollback-on-failure
10helm upgrade --install --descriptionCustom description
11helm uninstall --keep-historyKeeping 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.

CommandDoes the release exist?Behavior
helm installNoCreates the release
helm installYesError: cannot reuse a name
helm upgradeNoError: has no deployed releases
helm upgradeYesUpdates the release

Demo: the install error on an existing release

Install a release:

Terminal window
helm install my-api podinfo/podinfo -n demo --create-namespace --version 6.16.0

The 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-api
LAST DEPLOYED: Tue Nov 17 08:07:59 2026
NAMESPACE: demo
STATUS: deployed
REVISION: 1
DESCRIPTION: Install complete

Try to reinstall the same release:

Terminal window
helm install my-api podinfo/podinfo -n demo --version 6.16.0

Result (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 use

This 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.

Terminal window
helm upgrade missing-app podinfo/podinfo -n demo

Result (error):

Error: UPGRADE FAILED: "missing-app" has no deployed releases

Idempotence 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, install works
  • Following deployments: the release exists, install fails

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:

Terminal window
helm upgrade --install demo podinfo/podinfo -n helm-demo --version 6.16.0

If the release does not exist:

Release "demo" does not exist. Installing it now.
NAME: demo
LAST DEPLOYED: Tue Nov 17 06:11:05 2026
NAMESPACE: helm-demo
STATUS: deployed
REVISION: 1
DESCRIPTION: Install complete
Terminal window
helm upgrade --install demo podinfo/podinfo -n helm-demo --version 6.17.0

If the release already exists:

Release "demo" has been upgraded. Happy Helming!
NAME: demo
LAST DEPLOYED: Tue Nov 17 06:11:05 2026
NAMESPACE: helm-demo
STATUS: deployed
REVISION: 2
DESCRIPTION: Upgrade complete

Look 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.

OptionEffect
--create-namespaceCreates the namespace if it does not exist
--waitWaits until the Pods are Ready before finishing
--timeout 5mTimeout for --wait (default: 5m)
--rollback-on-failureAutomatic rollback if the upgrade fails
--description "v1.2.3"Custom description in the history

Complete CI/CD command:

Terminal window
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:

Terminal window
helm upgrade my-api podinfo/podinfo -n demo --set replicaCount=2

Result:

Release "my-api" has been upgraded. Happy Helming!
NAME: my-api
LAST DEPLOYED: Tue Nov 17 08:08:00 2026
NAMESPACE: demo
STATUS: deployed
REVISION: 3
DESCRIPTION: Upgrade complete

The 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:

Terminal window
helm upgrade my-api podinfo/podinfo -n demo --version 6.17.0

Without --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:

Terminal window
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.

Terminal window
# Extract the CRD from the new version of the chart, then apply it yourself
helm pull <repo>/<operator-chart> --version <new-version> --untar --untardir /tmp/chart
kubectl 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:

MomentWhat Helm does with the CRDs of crds/
installapplies them first, without template rendering
upgradedoes not touch them, whatever their evolution
uninstallkeeps 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:

Terminal window
helm install my-operator ./chart --skip-crds
kubectl get crd widgets.example.com
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io
"widgets.example.com" not found

This 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/migration
not ready. status: Failed, message: Job Failed. failed: 1/1

Three 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 DESCRIPTION
1 deployed Install complete
2 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:

Terminal window
kubectl logs -n demo job/migration

Without 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:

ValueEffect
before-hook-creationdefault policy: deletes the Job of the previous run before creating a new one, and therefore keeps the last Job for diagnosis
hook-succeededdeletes the Job if it succeeded, and therefore keeps the ones that failed
hook-failedthe 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:

Terminal window
helm list -n demo
NAME NAMESPACE REVISION STATUS CHART
r1 demo 1 deployed ad-0.1.0

Then 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 first

The 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: r1

The 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:

Terminal window
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:

Terminal window
kubectl api-resources | grep -i gadget

The 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.

Terminal window
kubectl apply -f crds/gadget.yaml
helm upgrade r1 ./chart -n demo

Prevention is much more comfortable than the cure. Before any cluster version bump, review what your releases actually applied:

Terminal window
for r in $(helm list -n demo -q); do
echo "== $r"
helm get manifest "$r" -n demo | grep '^apiVersion' | sort -u
done

This 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:

Terminal window
helm upgrade my-api podinfo/podinfo -n demo --set replicaCount=1 --force-replace
level=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 together

Helm 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.

Terminal window
helm status demo -n helm-demo

Result:

NAME: demo
LAST DEPLOYED: Tue Nov 17 06:10:37 2026
NAMESPACE: helm-demo
STATUS: deployed
REVISION: 1
DESCRIPTION: Install complete
RESOURCES:
==> v1/Service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
demo-podinfo ClusterIP 10.102.177.99 <none> 9898/TCP,9999/TCP 2s
==> v1/Deployment
NAME READY UP-TO-DATE AVAILABLE AGE
demo-podinfo 1/1 1 1 2s
==> v1/Pod(related)
NAME READY STATUS RESTARTS AGE
demo-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:9898

No 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:

FieldMeaning
LAST DEPLOYEDDate and time of the last deployment
STATUSCurrent state (deployed, failed, etc.)
REVISIONNumber of the current revision
DESCRIPTIONWhat Helm did during this revision (Install complete, Upgrade complete)
RESOURCESState of the Service, the Deployment and the related Pods
NOTESPost-installation instructions of the chart

helm status for a specific revision

You can look at the state of a past revision:

Terminal window
helm status my-api -n demo --revision 1

Result:

NAME: my-api
LAST DEPLOYED: Tue Nov 17 08:07:59 2026
NAMESPACE: demo
STATUS: superseded
REVISION: 1
DESCRIPTION: Install complete
RESOURCES:
==> v1/Service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
my-api-podinfo ClusterIP 10.102.203.42 <none> 9898/TCP,9999/TCP 1s
==> v1/Deployment
NAME READY UP-TO-DATE AVAILABLE AGE
my-api-podinfo 0/2 2 0 1s
==> v1/Pod(related)
NAME READY STATUS RESTARTS AGE
my-api-podinfo-7f8594c87-vc72p 0/1 ContainerCreating 0 0s
my-api-podinfo-7f8594c87-vmmt2 0/1 Terminating 0 1s
my-api-podinfo-86cf4c6df6-8bwv7 0/1 ContainerCreating 0 0s
my-api-podinfo-86cf4c6df6-zll9c 0/1 ContainerCreating 0 0s

The 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: 2

Without --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.

Terminal window
helm history my-api -n demo

Result:

REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 Tue Nov 17 08:07:59 2026 superseded podinfo-6.16.0 6.16.0 Install complete
2 Tue Nov 17 08:07:59 2026 superseded podinfo-6.16.0 6.16.0 Upgrade complete
3 Tue Nov 17 08:08:00 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete
4 Tue Nov 17 08:08:00 2026 deployed podinfo-6.17.0 6.17.0 Upgrade complete

Look 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:

ColumnContent
REVISIONIncremental number of the revision
UPDATEDDate and time of this revision
STATUSdeployed (current), superseded (old), failed
CHARTName and version of the chart used
APP VERSIONVersion of the application (defined in Chart.yaml)
DESCRIPTIONOrigin: Install complete, Upgrade complete, Rollback to X

The helm get commands

Helm offers several get commands to inspect the details of a release:

CommandContent
helm get valuesCustom values (overrides)
helm get values --allAll the values (defaults + overrides)
helm get manifestGenerated Kubernetes manifests
helm get notesPost-installation notes
helm get hooksHooks of the release
helm get allEverything above

Example: see the values of a previous revision

Terminal window
helm get values my-api -n demo --revision 1

Result:

USER-SUPPLIED VALUES:
null

Revision 1 had no override.

Terminal window
helm get values my-api -n demo --revision 3

Result:

USER-SUPPLIED VALUES:
replicaCount: 2

Revision 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.

Terminal window
helm upgrade my-api podinfo/podinfo -n demo --history-max 3

This option automatically purges the oldest revisions to keep only 3:

Terminal window
helm history my-api -n demo

Result: 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 DESCRIPTION
3 Tue Nov 17 08:08:00 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete
4 Tue Nov 17 08:08:00 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete
5 Tue Nov 17 08:08:01 2026 deployed podinfo-6.17.0 6.17.0 Upgrade complete

The 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

Terminal window
helm rollback my-api 3 -n demo

Result:

Rollback was a success! Happy Helming!

Check the history after the rollback:

Terminal window
helm history my-api -n demo

Result:

REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
3 Tue Nov 17 08:08:00 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete
4 Tue Nov 17 08:08:00 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete
5 Tue Nov 17 08:08:01 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete
6 Tue Nov 17 08:08:01 2026 deployed podinfo-6.17.0 6.17.0 Rollback to 3

The 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:

Terminal window
helm rollback my-api -n demo

Result:

Rollback was a success! Happy Helming!
Terminal window
helm history my-api -n demo

Result:

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 3
7 Tue Nov 17 08:08:01 2026 deployed podinfo-6.17.0 6.17.0 Rollback to 5

The 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:

ElementRestored?
Values (configuration)Yes
Chart versionYes
Generated templatesYes
Kubernetes resourcesYes (recreated/patched)
PVC dataNo (persistent)
Database dataNo (external)

Error: nonexistent revision

Terminal window
helm rollback my-api 99 -n demo

Result:

Error: release has no 99 version

Check 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-replace
level=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 together

The 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.

OptionEffect
--waitWaits until the Pods are Ready
--timeout 5mTimeout for --wait
--force-replaceDeletes 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.

Terminal window
helm uninstall my-api -n demo

Result:

release "my-api" uninstalled

This 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.

ObjectFate after helm uninstall
Resources rendered from templates/deleted
CRD from the crds/ folderkept, and you must delete it by hand
Objects created by an operator, outside the chartkept
Namespace created by --create-namespacekept

The useful check therefore does not stop at the namespace:

Terminal window
helm list -n demo
kubectl get all -n demo
kubectl get crd | grep my-operator

Deleting 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.

Terminal window
# ❌ Never run this without counting the instances first
kubectl delete crd widgets.example.com

Keeping the history with --keep-history

To keep a trace of the removed release:

Terminal window
helm uninstall my-api -n demo --keep-history

Result:

release "my-api" uninstalled

In 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.

Terminal window
helm list -n demo --uninstalled

Result:

NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
my-api demo 11 2026-11-17 08:08:35.84775228 +0000 UTC uninstalled podinfo-6.17.0 6.17.0

The history can still be read:

Terminal window
helm history my-api -n demo

Result:

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 check
11 Tue Nov 17 08:08:35 2026 uninstalled podinfo-6.17.0 6.17.0 Uninstallation complete

This 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.

Terminal window
# All releases, whatever the status (default)
helm list -n demo
# Only the deployed releases
helm list -n demo --deployed
# Only the failed releases
helm list -n demo --failed
# Removed releases (with --keep-history)
helm list -n demo --uninstalled
# Revisions replaced by a more recent one
helm list -n demo --superseded

What 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.

ResourceWhy
PersistentVolumeClaims of a StatefulSetCreated 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 manuallyNot managed by Helm

To delete the namespace and all its content:

Terminal window
kubectl delete namespace demo

Advanced 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.

Terminal window
helm upgrade --install my-api podinfo/podinfo \
-n demo \
--set image.tag=nonexistent \
--rollback-on-failure \
--timeout 30s

If 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/1
context deadline exceeded
8 failed Upgrade "my-api" failed: resource Deployment/demo/my-api-podinfo not ready. status: InProgress, message: Available: ...
9 deployed Rollback to 7

The 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 45s
Flag --atomic has been deprecated, use --rollback-on-failure instead
level=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/1
context deadline exceeded

helm 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

Terminal window
helm upgrade my-api podinfo/podinfo -n demo --set replicaCount=5 --dry-run=client

Always 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-api
LAST DEPLOYED: Tue Nov 17 08:08:02 2026
NAMESPACE: demo
STATUS: pending-upgrade
REVISION: 8
DESCRIPTION: Dry run complete
HOOKS:

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-api
LAST DEPLOYED: Tue Nov 17 08:08:01 2026
NAMESPACE: demo
STATUS: deployed
REVISION: 7
DESCRIPTION: Rollback to 5

The 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

Terminal window
# List of releases in JSON
helm list -n demo -o json
# History in YAML
helm history my-api -n demo -o yaml

Useful 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:

Terminal window
helm upgrade --install my-api podinfo/podinfo \
-n demo \
--description "Ticket JIRA-1234 - Add health check"
Terminal window
helm history my-api -n demo

Result:

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 7
10 Tue Nov 17 08:08:35 2026 deployed podinfo-6.17.0 6.17.0 Ticket JIRA-1234 - Add health check

The 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.

CommandEffect
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.

SymptomProbable causeSolution
cannot reuse a nameThe release already existsUse upgrade --install
has no deployed releasesThe release does not existUse upgrade --install
release has no X versionNonexistent revisionCheck with helm history
cannot use server-side apply and force replace together--force-replace (or --force) requested on a release applied with Server-Side ApplyRemove the flag; the attempted revision stays failed in the history
failed in helm history, while the previous revision stays deployedAn upgrade failed: failing hook, timeout exceeded or object rejected by the API serverRead the DESCRIPTION column, fix the cause, rerun helm upgrade
no matches for kind on upgrade, rollback and uninstallAn apiVersion of the stored manifest has disappeared from the clusterReapply the CRD or the API, then rerun the command
Pods in Pending after a rollbackInsufficient resourcesCheck the quotas/nodes
PVC still present after uninstallNormal behaviorDelete 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.

  1. Install a stable release

    Terminal window
    kubectl create namespace helm-lab
    helm install my-api podinfo/podinfo -n helm-lab --version 6.17.0
  2. Check the initial state

    Terminal window
    helm history my-api -n helm-lab
    kubectl get pods -n helm-lab
  3. 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"
  4. Observe the new revision

    Terminal window
    helm history my-api -n helm-lab
    helm get values my-api -n helm-lab
  5. Simulate a problem (nonexistent image)

    Terminal window
    helm upgrade my-api podinfo/podinfo -n helm-lab --set image.tag=wrong-version
  6. Observe the broken state

    Terminal window
    kubectl get pods -n helm-lab
    # One or more Pods in ImagePullBackOff
  7. Roll back to the stable revision

    Terminal window
    helm rollback my-api 2 -n helm-lab
  8. Check the return to normal

    Terminal window
    helm history my-api -n helm-lab
    kubectl get pods -n helm-lab
    # All the Pods Running
  9. Clean up

    Terminal window
    helm uninstall my-api -n helm-lab
    kubectl 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-api
LAST DEPLOYED: Tue Nov 17 08:08:49 2026
NAMESPACE: helm-lab
STATUS: deployed
REVISION: 3
DESCRIPTION: Upgrade complete

Without --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 AGE
my-api-podinfo-6bcc555d8b-6z2vl 0/1 ImagePullBackOff 0 20s

After 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 DESCRIPTION
1 Tue Nov 17 08:08:42 2026 superseded podinfo-6.17.0 6.17.0 Install complete
2 Tue Nov 17 08:08:44 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete
3 Tue Nov 17 08:08:49 2026 superseded podinfo-6.17.0 6.17.0 Upgrade complete
4 Tue Nov 17 08:09:09 2026 deployed podinfo-6.17.0 6.17.0 Rollback to 2
NAME READY STATUS RESTARTS AGE
my-api-podinfo-5bcf6777b9-dg7cz 1/1 Running 0 15s
my-api-podinfo-5bcf6777b9-fvhlt 1/1 Running 0 12s
my-api-podinfo-5bcf6777b9-gk5bd 1/1 Running 0 15s

Success criteria:

  • helm history shows 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 --install is 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 history lets you read all the revisions
  • helm upgrade without --version takes the latest chart version: give the current version if you only want to change the values
  • helm upgrade --dry-run=client prints "has been upgraded" and STATUS: pending-upgrade without changing anything: read DESCRIPTION: Dry run complete
  • --force-replace is refused when the release is applied with Server-Side Apply
  • helm rollback creates a new revision with the old config; without a number, it targets N-1, which can be a failed attempt
  • helm uninstall deletes the resources rendered by the templates, but not the CRDs of crds/ nor the PVCs of StatefulSets
  • helm upgrade never updates the CRDs of crds/: apply them yourself
  • An upgrade that only passes a --set starts again from the default values of the chart: pass all your -f files again, or export your values with helm get values -o yaml to pass them again with -f
  • Use --rollback-on-failure in 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

9 questions
5 min
80% to pass

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