This guide teaches you to deploy applications on Kubernetes with helm install and to manage their complete lifecycle: updates, rollbacks and removal. You will understand what a release is, how Helm stores its history, and above all how to read and interpret every line of output of the Helm commands. In 20 minutes, you will know how to deploy, update and troubleshoot your applications.
What you will learn
- Tell a chart from a release, and understand where Helm keeps its history.
- Install an application and read every line of the
helm installoutput. - Update a release with
helm upgrade, knowing what--reuse-valueskeeps and what it does not fix during a version upgrade. - Go back with
helm rollback, relying onhelm history. - Remove a release while identifying what survives it, PVCs and CRDs included.
- Simulate a deployment with
--dry-runbefore touching the cluster.
Prerequisites
- Helm 4 installed (see How do you install Helm 4?) and a chart repository declared (see the section on
helm repo) - A working Kubernetes cluster,
kindfor this training kubectlconfigured and connected to the cluster
The examples use two repositories. If you have not declared them yet, add them:
helm repo add prometheus-community https://prometheus-community.github.io/helm-chartshelm repo add podinfo https://stefanprodan.github.io/podinfohelm repo updateThen check your environment:
# Check the connection to the clusterkubectl cluster-info
# Check that Helm talks to the clusterhelm list --all-namespacesUnderstanding Helm releases
Helm does not merely apply manifests: it keeps a memory of what it has deployed. That memory is the release, the object that ties together a chart, the values used and the state obtained on the cluster. Understanding where it is stored and how it evolves explains almost all of Helm's behavior, error messages included.
What is a release?
A release is a deployed instance of a Helm chart. Every release has:
- A unique name in the namespace (chosen by you)
- A revision number (starts at 1, incremented on every upgrade)
- A status (deployed, failed, pending-install, etc.)
- A history of the previous revisions (for rollbacks)
The distinction between chart and release is the one that unlocks the rest of the lesson. The chart is the versioned package, with its templates and its default values; it lives in a repository and knows nothing about your cluster. The release is the instance deployed in a namespace, with the values actually applied and its own revision number.
The practical consequence is that you can deploy the same chart several times, under different release names, for example prometheus-prod and prometheus-staging. Each release then carries its own history and its own values, and is updated or removed independently of the other.
Where does Helm store releases?
Helm stores release metadata directly in Kubernetes, as Secrets in the namespace of the release. The following sections install the my-metrics release and then update it: once those two operations are done, the command below lists one Secret per revision.
kubectl get secrets -n helm-demo -l "owner=helm"The command lists one Secret per revision, all of type helm.sh/release.v1. Their name follows the pattern sh.helm.release.v1.<release>.v<revision>: you must therefore read sh.helm.release.v1.my-metrics.v1, then sh.helm.release.v1.my-metrics.v2.
Each Secret contains the complete state of its revision: the values used, the generated manifest and the metadata.
Installing an application
Installation turns a chart into real Kubernetes objects. Helm computes the manifests from the templates and the values, sends them to the API server, then records everything in a release at revision 1. As long as this step is not understood, upgrade and rollback remain opaque.
Basic syntax
Only two arguments are mandatory: the name you give to the release and the reference of the chart to deploy.
helm install <release-name> <chart> [options]<release-name>: unique identifier of your choice (for examplemy-apporprometheus-prod)<chart>: reference of the chart (repo/chartor local path)
First deployment
Create a test namespace, then deploy an application:
# Create a dedicated namespacekubectl create namespace helm-demo
# Install kube-state-metrics from prometheus-communityhelm install my-metrics prometheus-community/kube-state-metrics --version 5.27.0 --namespace helm-demoThe --version option pins the chart version. Without it, Helm installs the latest stable version published, which changes from one day to the next: the NOTES and the versions you read could then differ from those described here.
What the command prints: a metadata block, then the text of the NOTES. In the block, check four fields: NAME must be my-metrics, NAMESPACE must be helm-demo, STATUS must be deployed and REVISION must be 1. The LAST DEPLOYED field gives the date and time of the operation. The NOTES come from the chart: for kube-state-metrics, they describe the component and tell you how to reach its metrics.
Understanding the output of helm install
The following table explains each line of the output:
| Line | Meaning | To remember |
|---|---|---|
NAME: my-metrics | Name of the release you chose | It is the identifier for all future commands (helm upgrade my-metrics, helm uninstall my-metrics) |
LAST DEPLOYED | Date and time of the deployment | Useful for debugging ("when was this version deployed?") |
NAMESPACE: helm-demo | Target Kubernetes namespace | All the objects created (Pods, Services, etc.) are in this namespace |
STATUS: deployed | Current state of the release | deployed = success. Other possible values: failed, pending-install, pending-upgrade |
REVISION: 1 | Version number of the release | Starts at 1, increments on every helm upgrade. Used for rollbacks |
DESCRIPTION: Install complete | Summary of the Helm operation | Serves as a landmark in helm history, where the same column describes each revision |
TEST SUITE: None | The chart defines no Helm test | When the chart defines some (as podinfo does), the line is absent at installation. After a helm test, helm status lists each test with Phase: Succeeded or Failed |
NOTES: | Post-installation instructions | Always read this section! It contains the information specific to the chart |
The NOTES: section is the only part of the output written by the author of the chart. No generic command will tell you how to reach the application you have just installed, and that is what makes it valuable. It usually carries four things: how to access the application (URL, port forwarding or Ingress), the default credentials when there are any, the verification commands to run, and the recommended additional configuration.
For kube-state-metrics, the NOTES say what the component does and at which internal address it exposes its metrics. If you lose them, helm status prints them again, with the same metadata block: they are stored with the release, not just written at installation.
The different release statuses
The status is the first thing to look at when something goes wrong. The pending-* statuses point to an interrupted operation, often because the Helm client was cut off midway: the release stays blocked until someone intervenes. The superseded status is not an anomaly: it designates a revision replaced by a more recent one.
The diagram follows the status of a release across the commands. The thick arrows mark the normal path: helm install leads to deployed, and helm upgrade leaves it to come back. Then look at the thin arrows: an installation or an update can end in failed. After a failed update, helm rollback lets you go back to a healthy revision; a failed installation has no previous revision, so you must fix the cause and then remove it with helm uninstall before reinstalling. The dotted line shows the previous revision that becomes superseded after a successful update, and uninstalled only appears with --keep-history.
The table details each status and what to do when the release stays stuck in it.
| Status | Meaning | Action |
|---|---|---|
deployed | Installation succeeded, resources created | Nothing to do |
failed | Installation or update failed | Check the logs, fix, retry; after an update, helm rollback <healthy revision>, number read from helm history; after an installation, helm uninstall then reinstall |
pending-install | Installation in progress, or client interrupted | Wait if it is still running, otherwise helm uninstall |
pending-upgrade | Update in progress, or client interrupted | Wait if it is still running, otherwise helm rollback |
pending-rollback | Rollback in progress, or client interrupted | Wait if it is still running, otherwise rerun helm rollback giving the number of the last healthy revision |
superseded | Old revision replaced | Normal after an upgrade |
uninstalling | Removal in progress, or failed without a status update | Wait if it is still running, otherwise rerun helm uninstall |
uninstalled | Release removed with --keep-history | Normal: the history is kept, helm rollback can restore it |
Checking the deployment
After a helm install, check that the Kubernetes resources have been created:
# See the resources created by the releasekubectl get all -n helm-demo -l "app.kubernetes.io/instance=my-metrics"The command lists the objects carrying this label: the Pods, the Service, the Deployment and the ReplicaSet it creates. You are looking for a Pod in Running with READY at 1/1, a Service of type ClusterIP, and a Deployment whose READY is 1/1. A Pod in Pending or CrashLoopBackOff means that the installation succeeded on the Helm side, but not on the application side: go to the troubleshooting section, further down.
Listing releases
helm list queries the release Secrets, not the deployed objects: you see what Helm believes it has installed. The command is limited by default to one namespace, that of the current context, which explains many Error: release: not found among beginners.
Seeing the releases of a namespace
With no additional filter, the output shows the releases whatever their status, including those in failed and those in uninstalled (kept by --keep-history).
helm list -n helm-demoAfter the installation, the command prints a single line, that of my-metrics, with REVISION at 1 and STATUS at deployed. The CHART column joins the name of the chart and its version, here 5.27.0.
Reading the table:
| Column | Meaning |
|---|---|
NAME | Name of the release |
NAMESPACE | Kubernetes namespace |
REVISION | Current revision number |
UPDATED | Date/time of the last change |
STATUS | Current state |
CHART | Name and version of the chart |
APP VERSION | Version of the deployed application |
Seeing all releases (all namespaces)
This is the inventory command, the one that answers "what has been installed on this cluster". It assumes read access on all namespaces, which a restricted account does not always have.
helm list --all-namespaces# orhelm list -AFiltering by status
These filters are mostly for diagnosis: a release left pending for several minutes after an operation almost always points to an interrupted command.
# See the failed releaseshelm list --failed
# See the releases being deployedhelm list --pendingOn a namespace where no release is concerned, the list is simply empty: it is not an error.
A failed release therefore shows up in the list without any option. Here is a namespace where one release was uninstalled with --keep-history (garde, French for "kept"), where an installation was rejected by the server because the Deployment carried an unknown field (casse, "broken"), and where another one exceeded its timeout with --wait --timeout 30s because the image did not exist (lente, "slow"):
helm list -n helm-demoNAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSIONcasse helm-demo 1 2026-11-17 08:06:42.552518342 +0000 UTC failed champ-inconnu-0.1.0garde helm-demo 1 2026-11-17 08:06:42.263269264 +0000 UTC uninstalled podinfo-6.17.0 6.17.0lente helm-demo 1 2026-11-17 08:06:42.631595897 +0000 UTC failed podinfo-6.17.0 6.17.0All three lines appear. helm list --failed keeps only casse and lente, helm list --uninstalled keeps only garde. An installation rejected by the server (server-side apply failed ... field not declared in schema) or stopped by an exceeded timeout therefore leaves a failed release: it blocks the name, and helm uninstall is needed before reinstalling.
There is one exception. When the installation fails before having written anything, there is no release at all. This is the case of a chart that declares a CRD and a resource of that kind in templates/: Helm answers unable to build kubernetes objects from release manifest: resource mapping not found ... no matches for kind "Widget", and helm list -n demo --failed --pending returns an empty list.
Updating a release
An update does not replace the release, it adds a revision to it. Helm compares the recorded state with the requested state and sends the cluster only what differs. Every successful upgrade increments the revision number and turns the previous one into superseded, which makes going back possible at any time.
helm upgrade
The helm upgrade command updates an existing release:
# Update the values, keeping the same chart versionhelm upgrade my-metrics prometheus-community/kube-state-metrics --version 5.27.0 -n helm-demo --set replicas=2
# Move up a version: give a version more recent than the installed onehelm upgrade my-metrics prometheus-community/kube-state-metrics --version <new-version> -n helm-demoWithout --version, helm upgrade takes the latest stable version of the chart, which can cross several major versions at once. To choose the target version, helm search repo prometheus-community/kube-state-metrics --versions lists the ones the local index knows.
What the command prints: a sentence confirming the update, then the same metadata block as for the installation. Check two fields: STATUS must stay deployed, and REVISION must go from 1 to 2.
An update that receives a value starts again from the chart defaults, not from the values of the previous revision. To keep the overrides already set on the same chart version, add --reuse-values. For a version upgrade, --reuse-values also keeps the old defaults: export your values with helm get values -o yaml, pass the file again with -f, or use --reset-then-reuse-values. The --reuse-values section of the Values lesson details these cases, and the Values lesson the general behavior during upgrades.
Installing or updating with helm upgrade --install
For CI/CD scripts, add --install to helm upgrade: the command installs the release if it does not exist and updates it otherwise.
# Installs if it does not exist, upgrades if it doeshelm upgrade --install my-metrics prometheus-community/kube-state-metrics --version 5.27.0 -n helm-demoIn continuous integration, write helm upgrade --install rather than helm install. The command becomes replayable as is (it is said to be idempotent), whether the release already exists or not, which saves you from writing a fragile condition around it.
Beware of the meaning of the word idempotent, though: every run still creates one more revision, even when nothing has changed. A pipeline triggered on every commit therefore fills the history for nothing. Helm caps it at 10 revisions by default: with each new revision, the oldest one beyond that limit is deleted. The --history-max option (or the HELM_MAX_HISTORY variable) changes the limit, and the value 0 removes it.
Viewing the history and rolling back
The history is the useful counterpart of storage in Secrets: each revision keeps its values and its complete manifest, so Helm can rebuild any past state without your original files. That is what makes the rollback reliable, even if the workstation that ran the initial deployment no longer exists.
Revision history
The DESCRIPTION column indicates the nature of each operation, which lets you immediately spot an earlier rollback.
helm history my-metrics -n helm-demoThe output is a table, one line per revision. After the installation then the update, you must read two lines: revision 1 in superseded with the description Install complete, and revision 2 in deployed with the description Upgrade complete. The UPDATED column gives the date of each operation.
Going back to a previous revision
The number passed to helm rollback is that of the target revision, as shown by helm history. Without a number, Helm goes back to the immediately previous revision.
# Roll back to revision 1helm rollback my-metrics 1 -n helm-demoHelm confirms the rollback with a one-line success message. Check the history after the rollback:
helm history my-metrics -n helm-demoThe table now has three lines: revisions 1 and 2 in superseded, and revision 3 in deployed, with the description Rollback to 1.
A rollback does not "go back" in the history: it adds to it. Helm creates a new revision that reproduces the state of the target revision, and keeps everything else. The complete history is therefore preserved, which keeps an auditable trace of the operation and lets you, if the rollback was the mistake, go forward again with a second rollback.
Removing a release
Removal is irreversible without precautions: by default, Helm deletes the Kubernetes objects and the revision history, so no rollback is possible any more. Two categories of objects survive nonetheless: the PersistentVolumeClaims created by a StatefulSet, and the CRDs shipped in the crds/ folder of the chart. A CRD placed in templates/ is an ordinary object of the release and disappears with it. To start from scratch, you must delete by hand what remains.
helm uninstall
helm uninstall removes the release, never the namespace: the namespace stays in place with any objects that did not belong to the release.
helm uninstall my-metrics -n helm-demoHelm answers with a line that confirms the uninstallation and names the release. By default, helm uninstall:
- Deletes all the Kubernetes objects created by the release
- Deletes the revision history
Uninstalling a release that does not exist fails instead of doing nothing: Error: uninstall: Release not loaded: <name>: release: not found. In a cleanup script run with set -e, the first missing release therefore stops everything. Add --ignore-not-found so that the absence of the release counts as a successful uninstallation, or test first with helm status.
Keeping the history
The --keep-history option deletes the resources but keeps the recorded revisions: you can restore the release with a helm rollback, and helm list --uninstalled finds it again. The name of the release stays reserved in the namespace: a reinstallation under that name fails with Error: INSTALLATION FAILED: release name check failed: cannot reuse a name that is still in use, preceded by a log line level=ERROR msg="release name check failed".
This command is an alternative to the simple uninstallation of the previous section, not a follow-up: if my-metrics is already uninstalled without --keep-history, Helm answers release: not found. To try the option, reinstall the release first, then run:
helm uninstall my-metrics -n helm-demo --keep-historyWith --keep-history, the revisions stay recorded. --uninstalled then lists the release with the uninstalled status, which the command does not show after a simple uninstallation, since the history is gone:
helm list -n helm-demo --uninstalledImportant options of helm install
These options combine freely and change the behavior of the command a lot. Two deserve particular attention. --wait makes Helm wait until the Pods are ready, without which the command returns before the application works. --rollback-on-failure, which was called --atomic in Helm v3, goes further by cancelling the operation if the timeout expires, which avoids leaving a half-installed release.
| Option | Description | Example |
|---|---|---|
--namespace / -n | Target namespace | -n production |
--create-namespace | Creates the namespace if it does not exist | --create-namespace |
--version | Specific chart version | --version 5.27.0 |
--values / -f | Custom values file | -f my-values.yaml |
--set | Overrides a value on the command line | --set replicas=3 |
--dry-run | Simulates without applying (client or server) | --dry-run=client |
--wait | Waits until the Pods are Ready | --wait |
--timeout | Timeout for --wait | --timeout 5m |
--rollback-on-failure | Automatic rollback on failure | --rollback-on-failure |
Example with several options
This call is representative of a real deployment: pinned chart version, versioned values file, one-off override and wait for the Pods to be actually available.
helm install prometheus prometheus-community/prometheus \ --namespace monitoring \ --create-namespace \ --version 25.27.0 \ -f custom-values.yaml \ --set server.retention=30d \ --wait \ --timeout 10mSimulating before deploying (dry-run)
The simulation makes the final rendering of the templates visible, substituted values included. It lets you check what a chart is really going to create before it touches the cluster, in particular when several values files override each other.
helm install my-app podinfo/podinfo --version 6.17.0 -n helm-demo --dry-run=clientThe output then carries four blocks, and nothing is created in the cluster:
- The release metadata, as for a normal installation, with
STATUS: pending-installandDESCRIPTION: Dry run complete - The
HOOKS:heading, which lists the resources run at specific moments of the lifecycle, such as thehelm testPods (it is empty when the chart defines none) - The complete YAML manifest (
MANIFEST:) that would be applied - The NOTES as they would be displayed
Client-side vs server-side dry-run
The difference lies in what Helm asks of the cluster. Client mode never contacts the cluster and works even without it: Helm uses default API versions and ignores lookup. Server mode requires a reachable cluster: Helm checks that it responds, reads its version and its APIs to feed .Capabilities, lets lookup query it, then checks that no resource of the chart already exists outside the release. In both modes, Helm then stops before writing anything.
# Client side (does not contact the cluster)helm install my-app podinfo/podinfo --version 6.17.0 -n helm-demo --dry-run=client
# Server side (queries the cluster, writes nothing)helm install my-app podinfo/podinfo --version 6.17.0 -n helm-demo --dry-run=server--dry-run=server is therefore more faithful on what depends on the cluster: the available API versions, lookup and conflicts with existing objects. On the other hand, in Helm 4.3.2, it sends no object to the Kubernetes API: it only reads the cluster. It therefore validates neither the schema of the objects, nor admission (webhooks), nor quotas.
Here is what server mode returns for podinfo 6.17.0, with some lines cut (...) for readability:
helm install demo podinfo/podinfo --version 6.17.0 -n helm-demo --dry-run=serverNAME: demoLAST DEPLOYED: Tue Nov 17 08:07:13 2026NAMESPACE: helm-demoSTATUS: pending-installREVISION: 1DESCRIPTION: Dry run completeHOOKS:---# Source: podinfo/templates/tests/grpc.yamlapiVersion: v1kind: Podmetadata: name: demo-podinfo-grpc-test-r0ylx...MANIFEST:---# Source: podinfo/templates/service.yamlapiVersion: v1kind: Service...# Source: podinfo/templates/deployment.yamlapiVersion: apps/v1kind: Deployment...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:9898Look at HOOKS: first: it contains three Pods (grpc.yaml, jwt.yaml, service.yaml in templates/tests/), all annotated "helm.sh/hook": test-success. These are the helm test tests, not resources of the application. The MANIFEST: contains only the Service and the Deployment. No TEST SUITE: line appears in this output.
Tested with a chart whose Deployment carries replicaz: 2 (unknown field) or replicas: "two" (wrong type): both --dry-run modes return code 0. Only the real installation fails, with server-side apply failed ... .spec.replicaz: field not declared in schema, and leaves the release in failed. Against a ResourceQuota at pods: 0, the result is the same with a podinfo chart (which creates a Deployment): --dry-run=server returns code 0 and Dry run complete.
Helm's server mode is therefore mostly useful for lookup functions. To have the API judge the manifests, send the rendering to kubectl apply --dry-run=server. It returns code 1 for an unknown field or a wrong type, with for example strict decoding error: unknown field "spec.replicaz":
helm template my-app podinfo/podinfo --version 6.17.0 -n helm-demo | kubectl apply --dry-run=server -n helm-demo -f -This command assumes that the namespace and the CRDs your resources depend on already exist in the cluster. On a first installation, create them first: otherwise, the API rejects the manifests. This also applies to the CRDs that the chart installs itself from its crds/ folder, which do not exist until the chart is installed.
The quota is a special case, and the way you run the command matters. In a test namespace whose ResourceQuota imposes pods: 0, a helm template run without -n renders the objects in the default namespace, and kubectl apply -n test rejects them all for that reason alone, before even looking at the quota:
helm template demo podinfo/podinfo --version 6.17.0 | kubectl apply --dry-run=server -n test -f -the namespace from the provided object "default" does not match the namespace "test". You must pass '--namespace=default' to perform this operation.The same message comes back once per rendered object. With -n test on both sides, the check goes as far as the quota:
helm template demo podinfo/podinfo --version 6.17.0 -n test | kubectl apply --dry-run=server -n test -f -service/demo-podinfo created (server dry run)deployment.apps/demo-podinfo created (server dry run)Error from server (Forbidden): error when creating "STDIN": pods "demo-podinfo-grpc-test-wiafp" is forbidden: exceeded quota: zero, requested: pods=1, used: pods=0, limited: pods=0Error from server (Forbidden): error when creating "STDIN": pods "demo-podinfo-jwt-test-1z9o0" is forbidden: exceeded quota: zero, requested: pods=1, used: pods=0, limited: pods=0Error from server (Forbidden): error when creating "STDIN": pods "demo-podinfo-service-test-sd9v4" is forbidden: exceeded quota: zero, requested: pods=1, used: pods=0, limited: pods=0The Service and the Deployment pass. What is rejected are the three test Pods. helm template also renders the test hooks, and a real kubectl apply would create them as ordinary Pods; they are created directly, so the quota sees them. The Deployment, for its part, is accepted despite pods: 0: the API only checks the quota when the ReplicaSet creates the Pods. The check by kubectl apply --dry-run=server therefore does not detect the quota of a Deployment, and neither does Helm's --dry-run=server. To find it, read the events of the ReplicaSet after the installation, as in the example below.
In a namespace whose ResourceQuota imposes pods: 0, a real installation does not report the problem right away: helm install returns code 0 and STATUS: deployed, while the Deployment stays at 0/1 and the ReplicaSet carries FailedCreate events (exceeded quota: zero). With --wait --timeout 45s, the command returns code 1 (here for a release y in the test namespace): Error: INSTALLATION FAILED: resource Deployment/test/y-podinfo not ready. status: InProgress, message: Replicas: 0/1, followed by context deadline exceeded. Without --wait, deployed therefore does not prove that the Pods are running.
Guided lab: the complete lifecycle of a release
This lab chains the complete lifecycle of a release: installation, update, rollback, then removal.
-
Create a namespace and install podinfo
Terminal window kubectl create namespace lab-helmhelm install demo podinfo/podinfo --namespace lab-helm --version 6.14.0Read the NOTES displayed carefully.
-
Check the deployment
Terminal window kubectl get all -n lab-helmhelm list -n lab-helm -
Update to a more recent version
Terminal window helm upgrade demo podinfo/podinfo --namespace lab-helm --version 6.14.1 -
Look at the history
Terminal window helm history demo -n lab-helm -
Perform a rollback
Terminal window helm rollback demo 1 -n lab-helmhelm history demo -n lab-helm -
Clean up
Terminal window helm uninstall demo -n lab-helmkubectl delete namespace lab-helm
At the end of step 5, helm history demo shows three revisions, and the third is the rollback to revision 1.
Troubleshooting
Most Helm errors come from the gap between the state recorded in the release and the reality of the cluster: a name already taken, an implicit namespace, or Pods that do not start within the allotted time. The table gives the quick reading, the commands that follow trace the exact cause.
| Symptom | Probable cause | Solution |
|---|---|---|
STATUS: failed | Error in the templates or invalid resources | helm status <release> then kubectl describe on the resources |
Error: INSTALLATION FAILED: release name check failed: cannot reuse a name that is still in use | A release with this name already exists in this namespace (or was uninstalled with --keep-history) | Use helm upgrade --install, choose another name or namespace, or delete it first |
Error: INSTALLATION FAILED: resource Deployment/<ns>/<name> not ready. status: InProgress, message: ... followed by context deadline exceeded | With --wait, the Pods are not ready before the end of --timeout | Read the events with kubectl describe on the Deployment and its Pods, then increase --timeout if the application is just slow |
Pods in CrashLoopBackOff | Incorrect configuration | Check the values, the secrets, the resources |
Error: release: not found | Wrong namespace, or release missing (message returned by helm status, helm history and helm get values) | Add -n <namespace> to the command, then helm list -A |
Error: uninstall: Release not loaded: <name>: release: not found | The release does not exist (or not in this namespace) | Check -n, or add --ignore-not-found in a cleanup script |
UPGRADE FAILED: another operation in progress | Release stuck in pending-* | See the table of statuses: helm uninstall after a pending-install, helm rollback otherwise |
Investigating a failed release
These three commands read the release as it is recorded. helm status gives its state. helm get manifest shows the YAML actually applied, whereas helm template recomputes a rendering from the current chart, which can differ from what is running. helm get values shows the values supplied. The gap between what you thought you passed and what is recorded is what you need to locate.
# See the detailed statushelm status my-release -n my-namespace
# See the manifests that were appliedhelm get manifest my-release -n my-namespace
# See the values usedhelm get values my-release -n my-namespaceWith Helm v4.3.2, helm status prints after the metadata the RESOURCES block (Service, Deployment, related Pods, with their state), then the NOTES. Look at the READY column: a deployed release whose Deployment stays at 0/1 has not started its Pods. The --show-resources flag no longer exists.
Without options, helm get values shows only the values you supplied. On a release installed without values, the output is USER-SUPPLIED VALUES: followed by null. Add --all to see the complete merge with the chart defaults, under COMPUTED VALUES.
Hands-on practice
A Helm rollback is read in the history of the release, not in the chart. The lab gives you a web chart at version 0.1.0, to install with its default values in an empty namespace. You then bump the chart to 0.2.0 by editing its Chart.yaml file, upgrade the release with 3 replicas and a tier=front Pod label, then go back to the first revision. The history must then show web-0.1.0, web-0.2.0, then web-0.1.0 again.
The validation reads the history of the release and the values of each revision, checks the state of the Deployment and the image the chart deploys, then queries the Service to make sure the page answers.
Key takeaways
- A release is the deployed instance of a chart, with a unique name, a revision number and a history.
helm installcreates a new release. Always read the NOTES displayed.- The output of
helm installgivesNAME,NAMESPACE,STATUSandREVISION: these are the four fields to reread when there is a problem. helm upgrade --installis idempotent, prefer it in CI/CD; every run adds a revision, and Helm keeps only 10 by default (--history-max).- A
helm upgradethat receives a value starts again from the chart defaults:--reuse-valueskeeps the overrides of the previous revision, and is meant for an update on the same chart version (for a version upgrade:helm get values -o yamlpassed again with-f, or--reset-then-reuse-values). helm history+helm rollbacklet you go back to an earlier state.--dry-run=clientstays local;--dry-run=serverqueries the cluster (API versions,lookup, conflicts) but sends no object to the API and validates neither schema, nor admission, nor quotas. Run one of the two before production, andkubectl apply --dry-run=serverto have the API judge the manifests (the namespace and the CRDs must already exist).- Since Helm 4,
helm listshows all statuses;--failed,--pendingand--uninstalledare used to filter. - Without
--wait,STATUS: deployeddoes not prove that the Pods are running: with a quota that rejects Pods, the installation succeeds and the Deployment stays at0/1. - Helm stores releases in Kubernetes Secrets (no external database).
Knowledge check
Five questions drawn at random from the bank of this lesson. They cover what Helm records about a release and the commands that make it evolve.
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?
Continue the course: Helm values: customize cleanly with -f and --set
A new full quiz with random questions
Work again only on the questions you missed