When a Helm deployment fails, the error message does not always say what happened. This guide gives you a systematic diagnostic method: validate the chart itself, inspect what it generates, then analyze the state of the release. By the end, you will be able to tell whether the problem comes from the chart, the values or the cluster.
What you will learn
- Detect syntax errors before deploying with
helm lint - Understand exactly what Helm is going to send to the cluster with
helm template - Simulate an installation against the cluster with
--dry-run=server, and know what it does not check - Investigate a failing release with
helm statusandhelm get - Preview the changes with
helm diffbefore an upgrade - Recognize the common errors and choose the command that settles each one
Prerequisites
- Helm v4.3.2 installed (
helm version --shortreturnsv4.3.2+g8346aaa), the version on which the outputs presented as "recorded" were obtained on 2026-11-17. The messages given without this mention (the--stricttable, the runbook,replicaZ, the RBAC denial) show the form of what Helm prints: their exact wording may vary from one version to another. - A chart to debug (or create one with
helm create my-chart) - A Kubernetes cluster (optional for the first steps)
The 4-step triage method
The natural reflex when facing a broken deployment is to rerun helm upgrade hoping it will go through. That risks leaving the release in a pending status and blocking yourself. The method below does the opposite: it starts from the most local level (the files on your disk) and works its way up to the cluster. The first two steps run offline, so without risk.
| Step | Command | What is checked | Without a cluster? |
|---|---|---|---|
| 1 | helm lint | Syntax of the chart | Yes |
| 2 | helm template | Generated manifests | Yes |
| 3 | helm install --dry-run=server | Simulation against the cluster | No |
| 4 | helm status / helm get | State of the release | No |
Why this order? Each step filters out one category of problems. If helm lint fails, there is no point testing the rest, the chart is syntactically incorrect. If helm template fails, the problem comes from the values or the templates. If --dry-run=server fails, it is a cluster-related problem: missing API, object that already exists, insufficient rights.
Step 1: validate the syntax with helm lint
This is the cheapest filter: helm lint reads the chart files on your disk and never contacts the Kubernetes API. It catches the faults that prevent template rendering, the ones that cost the most when they come up from a pipeline. As long as it fails, testing the rest is useless: Helm does not even have manifests to send.
Why lint?
helm lint analyzes a chart without deploying it and detects:
- YAML syntax errors
- Malformed Go templates (missing braces, unknown functions)
- Value paths whose parent is missing, such as
.Values.config.namewhenconfigdoes not exist (see the example below) - Best practices that are not followed (recommended icon, etc.)
Basic usage
The argument is a chart path, not a release name: helm lint works on the files on disk and therefore runs without a cluster, even on an offline workstation.
helm lint ./my-chartOutput recorded with Helm v4.3.2 on 2026-11-17, on a chart created by helm create my-chart:
==> Linting ./my-chart[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failedReading the result:
| Level | Meaning | Action |
|---|---|---|
[INFO] | Recommendation (non-blocking) | Optional to fix |
[WARNING] | Potential problem | To investigate |
[ERROR] | Blocking error | Must be fixed |
Example with a template error
Take a template that references a value missing from values.yaml:
apiVersion: v1kind: ConfigMapmetadata: name: {{ .Values.config.name }} # config does not exist in values.yamlhelm lint ./my-chartOutput recorded with Helm v4.3.2 on 2026-11-17 (return code 1):
==> Linting ./my-chart[INFO] Chart.yaml: icon is recommended[ERROR] templates/: my-chart/templates/configmap.yaml:4:18 executing "my-chart/templates/configmap.yaml" at <.Values.config.name>: nil pointer evaluating interface {}.name
Error: 1 chart(s) linted, 1 chart(s) failedWith --strict, the output is identical and the return code stays 1: a rendering error already fails without this flag. The same fault, recorded with helm template, is shown further down in the section on nil pointer.
The error names the faulty file (templates/configmap.yaml), line 4 and column 18. It also says why: .Values.config.name fails because the parent config does not exist (it is nil).
To fix it, add config.name to values.yaml, or read the path with dig (see "nil pointer evaluating interface" in the Top 5 errors). Writing {{ .Values.config.name | default "fallback" }} fixes nothing: the error stays the same, because default does not protect a missing parent.
Strict mode
--strict makes the lint fail on [WARNING], and on them alone. The help of the binary is explicit, "fail on lint warnings", and [INFO] messages do not switch: a chart without an icon stays successful with or without the flag. Remember the hierarchy, it decides what your CI pipeline blocks.
helm lint ./my-chart --strict| Level | Example message | Without --strict | With --strict |
|---|---|---|---|
[INFO] | Chart.yaml: icon is recommended | code 0 | code 0 |
[WARNING] | extensions/v1beta1 Deployment is deprecated | code 0 | code 1 |
[ERROR] | name missing from Chart.yaml | code 1 | code 1 |
The middle line is the one that matters: a warning blocks nothing by default. A chart that deploys an apiVersion removed since Kubernetes 1.16 therefore passes an ordinary helm lint successfully, and only fails at installation time, when the API server rejects the manifest. The lesson Managing Kubernetes API deprecations explains how to spot these APIs before a version upgrade.
When should you use --strict? In continuous integration, so that these warnings stop the pipeline instead of scrolling by. In local development, the normal mode is enough. Note in passing --kube-version, which tells the deprecation checks which Kubernetes version to refer to.
Step 2: see the rendering with helm template
A chart can pass the lint and still produce wrong manifests: wrong value injected, conditional block never activated, missing resource. This step makes the final YAML visible, the one Helm would actually send to the API. It is the command to reach for as soon as a doubt concerns the values or an {{- if }}.
Why template?
helm template generates the Kubernetes manifests exactly as they will be sent to the cluster, but without deploying them. It is the main tool to understand what Helm really does, as opposed to what you believe it does.
Basic usage
The first argument is the release name, and it is not a mere label: it feeds .Release.Name, so changing it modifies the prefix of the generated resources.
helm template my-release ./my-chartStart of the rendering of a chart created by helm create, recorded with Helm v4.3.2 on 2026-11-17 (the ... mark the rest, cut):
---apiVersion: v1kind: ServiceAccountmetadata: name: my-release-my-chart labels: helm.sh/chart: my-chart-0.1.0 app.kubernetes.io/name: my-chart app.kubernetes.io/instance: my-release app.kubernetes.io/version: "1.16.0" app.kubernetes.io/managed-by: HelmautomountServiceAccountToken: true
---# Source: my-chart/templates/service.yamlapiVersion: v1kind: Servicemetadata: name: my-release-my-chart labels: helm.sh/chart: my-chart-0.1.0 app.kubernetes.io/name: my-chart app.kubernetes.io/instance: my-release app.kubernetes.io/version: "1.16.0" app.kubernetes.io/managed-by: Helmspec: type: ClusterIP ports: - port: 80 targetPort: http protocol: TCP name: http selector: app.kubernetes.io/name: my-chart app.kubernetes.io/instance: my-release...To list the rendered resources at a glance, filter on kind: and # Source::
helm template my-release ./my-chart | grep -E '^kind:|^# Source:'kind: ServiceAccount# Source: my-chart/templates/service.yamlkind: Service# Source: my-chart/templates/deployment.yamlkind: Deployment# Source: my-chart/templates/tests/test-connection.yamlkind: PodThe last item is the helm test Pod, a hook: helm template renders it along with the rest.
What you should check:
| Element | Question to ask |
|---|---|
| Resource names | Is my-release-my-chart consistent? |
| Labels | Are the app.kubernetes.io/* labels present? |
| Injected values | Does replicas: 1 match what I wanted? |
| Generated resources | Is a Service missing? A ConfigMap? |
Testing with specific values
The order of precedence is fixed: the default values of values.yaml are overridden by the files passed with -f, themselves overridden by --set. If you stack several -f, the last file on the command line wins.
# With a values filehelm template my-release ./my-chart -f values-prod.yaml
# With an inline overridehelm template my-release ./my-chart --set replicaCount=5
# Combine bothhelm template my-release ./my-chart -f values-prod.yaml --set image.tag=v2.0.0Why does it matter? A chart can work with the default values but fail with your production values. Always test with the real values.
Filtering the output
The output of helm template can be large. Use grep or yq to filter it:
# See only the Deploymentshelm template my-release ./my-chart | grep -A 50 "kind: Deployment"
# See only the number of replicashelm template my-release ./my-chart | grep "replicas:"
# With yq (if installed)helm template my-release ./my-chart | yq 'select(.kind == "Deployment")'Debug mode
The --debug flag turns on Helm's debug messages. Since Helm 4, they go through Go's structured logger (slog): they come out on standard error, at the DEBUG level, one line per message, in the form level=DEBUG msg="..." followed by key=value pairs. You therefore see them on the terminal, next to the YAML that helm template writes on standard output.
helm template my-release ./my-chart --debugThe messages vary with the command, the chart and the options. They describe what Helm does as it runs, for example loading the chart. Run the command on your chart to see the exact lines of your version: they are not reproduced here.
When should you use --debug? When you are not sure that Helm loads the right chart (path or dependency problem).
Step 3: simulate against the cluster with --dry-run=server
The first two steps only know your disk. They do not know whether the expected CRD is installed, whether the apiVersion used still exists on this cluster, or whether an object with the same name already exists. This step has Helm read the cluster (its APIs, its existing objects), without creating anything.
Why dry-run?
helm template generates the manifests locally, without contacting the cluster. Some errors only show up against the cluster:
- an
apiVersionthat this cluster does not serve, or no longer serves; - a resource of the chart that already exists in the namespace without belonging to the release;
- a
lookupor a.Capabilitieswhose rendering depends on the cluster; - a permission denial (RBAC) on reading the objects.
What does --dry-run=server check, and what does it let through?
helm install --dry-run=server reads the cluster, but sends it no object. It therefore creates no resource, and according to the code of Helm 4.3.2 it evaluates neither quotas, nor admission webhooks, nor the rejection of a field at creation.
This also applies to the schema: tested with Helm v4.3.2 on a chart whose Deployment carries replicaz: 2 (unknown field) or replicas: "two" (wrong type), --dry-run=server and --dry-run=client both return code 0 and print the faulty manifest. To catch these faults before installation, send the rendering to the API:
helm template x ./my-chart | kubectl apply --dry-run=server -f -Error from server (BadRequest): error when creating "STDIN": Deployment in version "v1" cannot be handled as a Deployment: strict decoding error: unknown field "spec.replicaz"For the wrong type, the message is json: cannot unmarshal string into Go struct field DeploymentSpec.spec.replicas of type int32. In both cases the return code is 1. kubectl apply --dry-run=client detects nothing and answers deployment.apps/x created (dry run). The real installation also fails, in server-side apply (.spec.replicaz: field not declared in schema, or .spec.replicas: expected numeric (int or float), got string), and leaves the release in the failed state.
With --debug, no object creation line appears: Helm sent nothing to the API. Helm's server mode is therefore useful for lookup functions and for conflicts with existing objects, not for validating manifests.
Under helm template (and --dry-run=client), Helm does not read the cluster: it uses a built-in list of APIs, which takes up the native Kubernetes APIs known to its library (such as apps/v1) and the CustomResourceDefinition. .Capabilities.APIVersions.Has "apps/v1" therefore answers true even without a cluster, whereas an API defined by a third-party CRD (for example monitoring.coreos.com/v1) answers false, and lookup returns an empty map. A block conditioned by a third-party API or by lookup can therefore disappear from the local rendering and reappear at installation.
Usage
Always specify the namespace with -n: Helm looks for already existing objects in that namespace, and the same chart can pass in one and conflict in the other.
helm install p ./bare-pod --dry-run=server -n testStart of the output, recorded with Helm v4.3.2 on 2026-11-17 on a trial chart bare-pod (a single Pod):
NAME: pLAST DEPLOYED: Tue Nov 17 06:14:21 2026NAMESPACE: testSTATUS: pending-installREVISION: 1DESCRIPTION: Dry run completeTEST SUITE: None...HOOKS:MANIFEST:---# Source: bare-pod/templates/pod.yaml...The STATUS: pending-install line and the Dry run complete description are reminders that no release was created. The ... lines mark the cut parts: with --debug, the output also adds the USER-SUPPLIED VALUES and COMPUTED VALUES sections.
Difference with helm template:
| Aspect | helm template | helm install --dry-run=server |
|---|---|---|
| Needs a cluster | No | Yes |
API versions and lookup of the cluster | Default values | Read from the cluster |
| Conflict with an existing object | Not checked | Checked |
| Schema of the objects (unknown field, wrong type) | Not checked | Not checked (no object sent to the API) |
| Quotas and admission | Not evaluated | Not evaluated (no object sent to the API) |
| Speed | Instant | A few seconds |
Server-side vs client-side dry-run
Helm offers two dry-run modes. The --dry-run option takes one of these values: none (default value, the operation runs normally and records its changes), client or server. Written without a value, it is equivalent to --dry-run=client and Helm reports this form as deprecated. The lesson Migrate to Helm v4 details what changes since Helm 3.
# Server-side dry-run: queries the cluster, writes nothinghelm install my-release ./my-chart --dry-run=server -n my-namespace
# Client-side dry-run: no access to the cluster, like helm templatehelm install my-release ./my-chart --dry-run=client -n my-namespaceUse --dry-run=server for what depends on the cluster, --dry-run=client if you have no cluster available. To have the API judge the manifests (schema, admission), pass them to kubectl apply --dry-run=server -n my-namespace -f - after helm template.
Step 4: diagnose an existing release
If the first three steps pass, the chart renders consistent manifests, but the cluster can still refuse them: the schema of the objects, the quotas and the admission are only judged at the real installation, or by kubectl apply --dry-run=server (see step 3). The problem is then on the cluster side or in the history of the release. Helm keeps the manifests and the values of every revision in Secrets of the namespace, which lets you compare what was sent with what you thought you sent.
helm status: general state
When a release is deployed but seems not to work, start with helm status:
helm status demo -n helm-demoNAME: 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:9898With Helm v4.3.2, the RESOURCES block (the Service, the Deployment and the related Pods) is displayed by default: the --show-resources flag no longer exists and answers Error: unknown flag: --show-resources. Look at the READY column of the Deployment and the Pods before searching elsewhere. No TEST SUITE line appears as long as no helm test has run; after a helm test, a TEST SUITE, Last Started, Last Completed, Phase block is added for each test, before the NOTES.
What STATUS tells you:
| Status | Meaning | Action |
|---|---|---|
deployed | Install/upgrade succeeded | The problem is on the Kubernetes side, not Helm |
failed | Helm failed | See the hooks, the validation errors |
pending-install | Install in progress, or client interrupted | Wait if it is still running, otherwise helm uninstall (no earlier revision to go back to) |
pending-upgrade | Upgrade 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 |
superseded | Old revision | Normal after an upgrade |
helm get: detailed investigation
helm get retrieves the information stored by Helm for a release:
helm get manifest demo -n helm-demoShows the manifests as they were sent to Kubernetes, hooks excluded: the resources declared as hooks (by the helm.sh/hook annotation) are read with helm get hooks. A resource present in the cluster but absent from helm get manifest is therefore not necessarily orphaned, it can be a hook. Compare them with the output of helm template: a gap between the two signals that the chart has changed since the last deployment.
# Only the overrideshelm get values demo -n helm-demoUSER-SUPPLIED VALUES:null# All the values (defaults + overrides)helm get values demo -n helm-demo --allCOMPUTED VALUES:affinity: {}backends: []cache: ""...image: pullPolicy: IfNotPresent pullSecrets: [] repository: ghcr.io/stefanprodan/podinfo tag: 6.17.0...replicaCount: 1The ... lines mark keys cut for readability: the real output is much longer (recorded with Helm v4.3.2 and the podinfo chart 6.17.0).
Why two commands? To tell apart what you supplied from what the chart uses by default. If you doubt a value, --all shows you the final value.
helm get notes demo -n helm-demoShows the post-installation instructions again (port-forward commands, URL, etc.).
helm get all demo -n helm-demoCombines status + values + manifest + notes. Useful for a complete diagnosis.
Bonus: preview changes with helm diff
The previous four steps answer "will it work". The question that scares people in production remains: "what is it going to change". The helm-diff plugin compares the deployed revision with the one you are about to push, and shows only the lines that change.
Why diff?
Before a helm upgrade, you want to know exactly what is going to change. The plugin shows it by comparing the current state with the new state.
Installation
helm-diff does not ship with Helm: it is an external plugin, installed in the plugin directory of your user and not at system level. You must therefore install it on every workstation and on every CI agent that needs to use it.
Helm 4.3.2 checks the installation of a plugin by default, and cannot do so from a Git repository. The direct command stops on:
Error: plugin source does not support verification. Use --verify=false to skip verificationMessage recorded with Helm v4.3.2 on 2026-11-17 (return code 1). The message is about the source: the help of helm plugin install in 4.3.2 limits signature verification to .tgz or .tar.gz archives accompanied by a .prov file, and treats a local folder as "local dev", without a signature.
This is not a bug: --verify defaults to true in 4.3.2, but an installation from a Git repository offers nothing to verify. Only an archive delivered with its .prov can be verified. For helm-diff, installed from its repository, the check must therefore be lifted explicitly:
helm plugin install https://github.com/databus23/helm-diff --verify=falseOutput recorded with Helm v4.3.2 on 2026-11-17:
WARNING: Skipping plugin signature verificationDownloading https://github.com/databus23/helm-diff/releases/latest/download/helm-diff-linux-amd64.tgzPreparing to install into /home/ansible/.local/share/helm/plugins/helm-diffInstalled plugin: diffThe installation path is the one of the account used for the recording. The download targets releases/latest: the version installed depends on the day of the installation.
Writing --verify=false means declaring that you trust this repository. A plugin runs with your rights and sees your manifests go by: treat this line as adding a dependency, not as a formality to silence a message. Check the repository, its release frequency and the number of its maintainers before typing it.
Once installed, helm plugin list reports what was checked. The output below was recorded with Helm v4.3.2 on 2026-11-17, just after installing helm-diff (version 3.15.15 that day):
NAME VERSION TYPE APIVERSION PROVENANCE SOURCEdiff 3.15.15 cli/v1 legacy unknown unknownThe PROVENANCE and SOURCE columns at unknown are the trace of the bypassed check, and APIVERSION: legacy signals a plugin written for the old format. A CI fleet is reviewed with this command. For comparison, a plugin installed from a local folder shows PROVENANCE at local dev, and a post-renderer in the Helm 4 format shows TYPE at postrenderer/v1 and APIVERSION at v1 (see Migrate to Helm v4).
Usage
Pass exactly the same arguments as the targeted helm upgrade, values and --set included: a single difference between the preview and the real command makes the diff misleading.
helm diff upgrade demo ./my-chart -n helm-demo --set replicaCount=3Output recorded with Helm v4.3.2 on 2026-11-17, on a release demo installed from a helm create chart (the lines without a prefix are context, unchanged). The nginx:1.16.0 image without a digest comes from this demonstration chart: avoid it in a real chart, where the image is pinned by digest.
helm-demo, demo-my-chart, Deployment (apps) has changed: apiVersion: apps/v1 kind: Deployment metadata: name: demo-my-chart labels: helm.sh/chart: my-chart-0.1.0 app.kubernetes.io/name: my-chart app.kubernetes.io/instance: demo app.kubernetes.io/version: "1.16.0" app.kubernetes.io/managed-by: Helm spec: replicas: 1 replicas: 3 selector: matchLabels: app.kubernetes.io/name: my-chart app.kubernetes.io/instance: demo template: metadata: labels: helm.sh/chart: my-chart-0.1.0 app.kubernetes.io/name: my-chart app.kubernetes.io/instance: demo app.kubernetes.io/version: "1.16.0" app.kubernetes.io/managed-by: Helm spec: serviceAccountName: demo-my-chart containers: - name: my-chart image: "nginx:1.16.0" # ❌ no digest: demonstration chart only imagePullPolicy: IfNotPresent ports: - name: http containerPort: 80 protocol: TCP livenessProbe: httpGet: path: / port: http readinessProbe: httpGet: path: / port: httpThe diff shows the whole document of the modified resource, with several lines of context around the change. Look for the lines prefixed with - and +: here, a single resource changes, the Deployment, and a single line inside it.
What diff shows you:
- The removed lines (prefix
-) - The added lines (prefix
+) - The resources that will be created/deleted
Top 5 errors and solutions
These five messages come up very often. Each one betrays a specific step of the cycle: template rendering, a call to the API or the state of the history. Identifying the step already gives half the answer, since it tells you where to look: your files, your cluster, or the revision Secrets.
1. "cannot reuse a name that is still in use"
The message falls on the client side, before any resource is created: Helm found a release with this name in the namespace.
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 useYou ran helm install on a release that already exists. Use helm upgrade --install (idempotent) or choose another release name. If the release is stuck in pending-upgrade, helm upgrade --install fails too, with the message of point 4: a rollback is what unblocks it.
helm upgrade --install demo ./my-chart -n helm-demo2. "release: not found"
Most often, the release exists but in another namespace: without -n, Helm only looks at the one of the current kubectl context.
Error: release: not foundHelm does not find the release in the namespace queried. Check the namespace and the name of the release.
helm list -A # Lists all the releases in all namespaces3. "nil pointer evaluating interface {}.xxx"
The error occurs at template rendering, so before any call to the cluster: it reproduces identically with helm template, offline.
Message recorded with Helm v4.3.2 (helm template t ./test, a chart without a config key in values.yaml):
Error: test/templates/cm.yaml:6:18 executing "test/templates/cm.yaml" at <.Values.config.name>: nil pointer evaluating interface {}.name
Use --debug flag to render out invalid YAMLA template references .Values.something.nested, but something does not exist. Add the value to values.yaml, or read the path with a function that tolerates the missing parent:
# Option 1: add to values.yamlsomething: nested: "value"
# Option 2: dig reads the path and returns "fallback" if a link is missing{{ dig "something" "nested" "fallback" .Values.AsMap }}
# Option 3: replace the missing parent with an empty map, then apply default{{ (.Values.something | default dict).nested | default "fallback" }}
# Option 4: condition in the template{{- if .Values.something }}{{ .Values.something.nested }}{{- end }}Options 2 and 3 were tested with Helm v4.3.2: with the key missing, they render fallback. Prefer dig when the path has several levels, and option 3 if you insist on dot notation.
Why {{ .Values.something.nested | default "fallback" }} is not enough. The same trial, with this line, renders exactly the error above. Go first evaluates the whole expression .Values.something.nested, then passes the result to default. When something is missing, the evaluation fails before default is called: default protects an empty value, not a missing parent.
4. "UPGRADE FAILED: another operation in progress"
Helm relies on the status of the last revision: as long as it stays in pending-install, pending-upgrade or pending-rollback, it refuses any new install or upgrade on this release. The rollback does not check this status: it is what unblocks the release, as the recording below shows.
Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progressThis message means that a previous operation was interrupted (Ctrl+C, timeout, crash).
Recorded with Helm v4.3.2 on 2026-11-17: a helm upgrade --wait killed by kill -9 after 8 seconds leaves revision 2 in pending-upgrade.
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION1 Tue Nov 17 14:49:56 2026 deployed my-chart-0.1.0 1.16.0 Install complete2 Tue Nov 17 14:49:57 2026 pending-upgrade my-chart-0.1.0 1.16.0 Preparing upgradeIn this state, helm upgrade fails with the message above, helm install fails with cannot reuse a name that is still in use, and helm upgrade --install returns the same message as helm upgrade: the idempotent form therefore unblocks nothing.
Only wait if another operation is really still running. If the client was interrupted, nothing frees the release by itself. On a pending-upgrade, do a rollback, which succeeds and adds a new revision while keeping the history. On a pending-install, there is no earlier revision to go back to, so the rollback has no target: this case was not tested, you have to decide according to the state of the release (helm history), for example by deleting it with helm uninstall before rerunning the installation.
# See the historyhelm history demo -n helm-demo
# Roll back to the last successful revision (here the 1st)helm rollback demo 1 -n helm-demoOutput of the rollback, recorded on the same release:
Rollback was a success! Happy Helming!REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION1 Tue Nov 17 14:49:56 2026 superseded my-chart-0.1.0 1.16.0 Install complete2 Tue Nov 17 14:49:57 2026 pending-upgrade my-chart-0.1.0 1.16.0 Preparing upgrade3 Tue Nov 17 14:50:05 2026 deployed my-chart-0.1.0 1.16.0 Rollback to 1Revision 3 is the new active revision. Revision 2 stays in pending-upgrade in the history: the rollback unblocks the release, but does not change the status of the interrupted revision.
5. "YAML parse error"
The Go rendering succeeded, it is the produced YAML that is invalid. Beware of the line number: it designates the rendered file, not the corresponding line in your template.
Message recorded with Helm v4.3.2 on 2026-11-17, on a trial chart whose template templates/cm-a.yaml contains a value starting with @:
apiVersion: v1kind: ConfigMapmetadata: name: trialdata: password: @secrethelm template t ./my-chartError: YAML parse error on my-chart/templates/cm-a.yaml: error converting YAML to JSON: yaml: line 6: found character that cannot start any token
Use --debug flag to render out invalid YAMLThe return code is 1. helm lint detects the same fault without deploying anything, with an [ERROR] line specific to the faulty file:
==> Linting ./my-chart[INFO] Chart.yaml: icon is recommended[ERROR] templates/cm-a.yaml: unable to parse YAML: error converting YAML to JSON: yaml: line 6: found character that cannot start any token
Error: 1 chart(s) linted, 1 chart(s) failedThe message changes with the fault. With password: value: other (a second : followed by a space in the value), the same helm template returns yaml: line 6: mapping values are not allowed in this context.
YAML refuses a value here that it cannot read as is. Two cases were recorded: a text that starts with @ (reserved character), or that contains : (a colon followed by a space). A : stuck to the two words, as in my:password, is on the other hand accepted: helm template --show-only templates/cm-a.yaml renders password: my:password without an error.
Put the value between quotes, or use the quote function when the value comes from the values:
# ❌ Bad: @ at the start, "cannot start any token" errorpassword: @secret
# ❌ Bad: ": " in the value, "mapping values are not allowed" errorpassword: value: other
# ✅ Goodpassword: "@secret"password: "value: other"
# ✅ Good, when the value comes from the valuespassword: {{ .Values.password | quote }}Runbook: which command for which symptom?
During an incident, nobody runs through a four-step method: you have an error message and you need to know where to look right away. This table takes the problem from that end, and goes beyond the five classics above. Each line gives the most probable cause and the command that settles it, the one that confirms or rules out the hypothesis in a single run. The messages in the left column give the form of what Helm prints: the exact wording varies with the version, so look for the characteristic fragment.
| Symptom | Most probable cause | The command that settles it |
|---|---|---|
cannot reuse a name that is still in use | a release with the same name already exists | helm list -n <ns> |
another operation ... is in progress | interrupted operation, pending-upgrade status | helm history <rel> -n <ns> |
failed revision, previous one deployed | failed upgrade: the previous one stays active, but some resources may have changed | helm history <rel> -n <ns> |
pre-upgrade hooks failed: ... Job Failed | a hook Job exited with an error | kubectl logs -n <ns> job/<name> |
| A hook Job stays afterwards | no hook-delete-policy on this hook | kubectl get job -n <ns> |
invalid ownership metadata | the resource already exists outside this release | kubectl get <res> -n <ns> -o yaml |
server-side apply failed ... field is immutable | field that cannot be modified after creation | helm diff upgrade, then a deliberate recreation |
no matches for kind ... | the API has disappeared from the cluster | helm get manifest <rel> -n <ns> |
... is forbidden: User ... cannot get resource | insufficient RBAC rights on a type | kubectl auth can-i <verb> <type> --as <user> |
Resource still there after uninstall | CRD, namespace or object outside the release | kubectl get crd, kubectl get all -n <ns> |
--set override without effect, no error | key absent from the chart, hence ignored | helm get values <rel> -n <ns> |
| Block absent locally, present after install | lookup or .Capabilities in the chart | helm install --dry-run=server |
strict decoding error: unknown field or cannot unmarshal string into Go struct field | unknown field or wrong type in the rendered manifest | helm template ... | kubectl apply --dry-run=server -f - |
The three situations that follow deserve a closer look: they trap even regulars, because the message displayed points at something other than the real cause. In all three cases, the natural reflex sends you looking in the wrong place, and it is that detour that costs the most time during an incident.
Why a release stays blocked when an API disappears
Deleting a CRD while a release deploys an instance of it locks that release in all three directions. Helm keeps displaying deployed, which gives a false sense of normality, but upgrade, rollback and uninstall all fail, since each one starts by rereading the stored manifest and translating it into Kubernetes objects. Without the corresponding API, this translation is impossible.
Output recorded with Helm v4.3.2 on 2026-11-17, on a release gad that deploys a Gadget object (a trial CRD gadgets.demo.local), after a kubectl delete crd gadgets.demo.local. helm status gad still answers STATUS: deployed, then:
$ helm upgrade gad ./gad -n helm-demoError: UPGRADE FAILED: resource mapping not found for name: "gad-g" namespace: "" from "": no matches for kind "Gadget" in version "demo.local/v1"ensure CRDs are installed first
$ helm rollback gad 1 -n helm-demoError: unable to build kubernetes objects from current release manifest: resource mapping not found for name: "gad-g" namespace: "" from "": no matches for kind "Gadget" in version "demo.local/v1"ensure CRDs are installed first
$ helm uninstall gad -n helm-demoError: failed to delete release: gadNote the last line: uninstall returns a laconic message, without mentioning the missing API. Taken in isolation, it points to a deletion problem whereas the cause is identical to the other two. Only helm get manifest still answers, because it merely rereads the revision Secret without interpreting anything: it returns the stored manifest of the Gadget. The way out of the crisis, recorded on this case, is to reinstall the CRD (kubectl apply -f of its definition), then to uninstall the release: helm uninstall gad -n helm-demo then returns release "gad" uninstalled.
Why an override can have no effect, without any error
A --set key that the chart does not use is silently accepted. Helm adds it to the values tree, the release goes to deployed, and nothing indicates that the template never read it. It is one of the cases in the table where nothing signals the problem, and one of the longest to diagnose: you look for an error that does not exist.
helm upgrade demo ./app -n demo --set replicaZ=42 # STATUS: deployed, no alert (expected form)helm get values demo -n demo # replicaZ: 42 ... and yetkubectl get deploy demo-web -n demo -o jsonpath='{.spec.replicas}' # 1The value does appear in the values of the release, which completes the impression that it was taken into account. The reflex that settles it is to compare helm get values with the key actually read by the template. The lasting remedy is a values.schema.json with additionalProperties: false: the typo then becomes a blocking error instead of a silence.
Why an RBAC denial falls before the first creation
Helm needs to read before it writes, so the denial arrives on a get, not on the expected create. An account allowed to create Deployments but not to read them would fail anyway: before any creation, Helm queries the cluster to know whether the resource already exists.
Form of the message Helm prints in this case:
Error: INSTALLATION FAILED: unable to continue with install: could not getinformation about the resource Deployment "trial-web" in namespace "demo":deployments.apps "trial-web" is forbidden: User "system:serviceaccount:demo:restricted"cannot get resource "deployments" in API group "apps" in the namespace "demo"The important point for diagnosis: helm template rendered the manifest without a hitch, since it talks to nobody. A correct rendering therefore says nothing about the rights. helm install --dry-run=server gives the same message as the real installation when the denial concerns a read, as here. A denial on the write (the create itself) does not appear at this stage, since Helm sends nothing to the API. It is therefore a good check to run upstream for read rights, and --kube-as-user lets you run it under the identity of the service account rather than under yours.
Key takeaways
The checks run from local to the cluster, and each one rules out a family of causes: fixing the first one that fails makes the following ones useless at this stage. In continuous integration, helm lint and helm template are enough to block a merge request whose chart does not render, without any cluster.
- Check from the most local to the most remote (
helm lint,helm template,--dry-run=server, thenhelm statusandhelm get) and stop at the first check that fails. helm lintfails on[ERROR]; with--strict,[WARNING]messages fail too, but not[INFO].--dry-run=serverreads the cluster but sends it no object: it judges neither the schema, nor the quotas, nor the admission. To have them judged, pass the rendering tokubectl apply --dry-run=server -f -.- A
--setkey that the chart does not read is silently accepted: comparehelm get valueswith what the template reads. - With Helm 4.3.2, installing a plugin from a Git repository requires
--verify=false, and it is a trust decision, not a formality. - Before a
helm upgradein production, runhelm diff upgradewith exactly the same arguments.
The table below sorts the commands according to whether or not they need a cluster.
| Command | Usage | Without a cluster |
|---|---|---|
helm lint | Validate the syntax of the chart | Yes |
helm template | See the generated manifests | Yes |
helm diff upgrade | Preview the changes | No |
helm install --dry-run=server | Simulation against the cluster | No |
helm status | State of a release | No |
helm get manifest | Deployed manifests | No |
helm get values | Values used | No |
Knowledge check
Eight questions on the diagnostic method: what lint really returns, the difference between the two modes of --dry-run (client and server), what helm get manifest shows or does not show, and why Helm 4.3.2 refuses to install a plugin from a Git repository without --verify=false.
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