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

Debug Helm: lint, template, --debug and diagnostics

45 min read
Improve this page

Logo Helm

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 status and helm get
  • Preview the changes with helm diff before an upgrade
  • Recognize the common errors and choose the command that settles each one

Prerequisites

  • Helm v4.3.2 installed (helm version --short returns v4.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 --strict table, 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.

StepCommandWhat is checkedWithout a cluster?
1helm lintSyntax of the chartYes
2helm templateGenerated manifestsYes
3helm install --dry-run=serverSimulation against the clusterNo
4helm status / helm getState of the releaseNo

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.name when config does 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.

Terminal window
helm lint ./my-chart

Output 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) failed

Reading the result:

LevelMeaningAction
[INFO]Recommendation (non-blocking)Optional to fix
[WARNING]Potential problemTo investigate
[ERROR]Blocking errorMust be fixed

Example with a template error

Take a template that references a value missing from values.yaml:

templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Values.config.name }} # config does not exist in values.yaml
Terminal window
helm lint ./my-chart

Output 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) failed

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

Terminal window
helm lint ./my-chart --strict
LevelExample messageWithout --strictWith --strict
[INFO]Chart.yaml: icon is recommendedcode 0code 0
[WARNING]extensions/v1beta1 Deployment is deprecatedcode 0code 1
[ERROR]name missing from Chart.yamlcode 1code 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.

Terminal window
helm template my-release ./my-chart

Start 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):

my-chart/templates/serviceaccount.yaml
---
apiVersion: v1
kind: ServiceAccount
metadata:
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: Helm
automountServiceAccountToken: true
---
# Source: my-chart/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
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: Helm
spec:
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::

Terminal window
helm template my-release ./my-chart | grep -E '^kind:|^# Source:'
my-chart/templates/serviceaccount.yaml
kind: ServiceAccount
# Source: my-chart/templates/service.yaml
kind: Service
# Source: my-chart/templates/deployment.yaml
kind: Deployment
# Source: my-chart/templates/tests/test-connection.yaml
kind: Pod

The last item is the helm test Pod, a hook: helm template renders it along with the rest.

What you should check:

ElementQuestion to ask
Resource namesIs my-release-my-chart consistent?
LabelsAre the app.kubernetes.io/* labels present?
Injected valuesDoes replicas: 1 match what I wanted?
Generated resourcesIs 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.

Terminal window
# With a values file
helm template my-release ./my-chart -f values-prod.yaml
# With an inline override
helm template my-release ./my-chart --set replicaCount=5
# Combine both
helm template my-release ./my-chart -f values-prod.yaml --set image.tag=v2.0.0

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

Terminal window
# See only the Deployments
helm template my-release ./my-chart | grep -A 50 "kind: Deployment"
# See only the number of replicas
helm 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.

Terminal window
helm template my-release ./my-chart --debug

The 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 apiVersion that 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 lookup or a .Capabilities whose 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:

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

Terminal window
helm install p ./bare-pod --dry-run=server -n test

Start of the output, recorded with Helm v4.3.2 on 2026-11-17 on a trial chart bare-pod (a single Pod):

NAME: p
LAST DEPLOYED: Tue Nov 17 06:14:21 2026
NAMESPACE: test
STATUS: pending-install
REVISION: 1
DESCRIPTION: Dry run complete
TEST 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:

Aspecthelm templatehelm install --dry-run=server
Needs a clusterNoYes
API versions and lookup of the clusterDefault valuesRead from the cluster
Conflict with an existing objectNot checkedChecked
Schema of the objects (unknown field, wrong type)Not checkedNot checked (no object sent to the API)
Quotas and admissionNot evaluatedNot evaluated (no object sent to the API)
SpeedInstantA 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.

Terminal window
# Server-side dry-run: queries the cluster, writes nothing
helm install my-release ./my-chart --dry-run=server -n my-namespace
# Client-side dry-run: no access to the cluster, like helm template
helm install my-release ./my-chart --dry-run=client -n my-namespace

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

Terminal window
helm status demo -n helm-demo
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

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

StatusMeaningAction
deployedInstall/upgrade succeededThe problem is on the Kubernetes side, not Helm
failedHelm failedSee the hooks, the validation errors
pending-installInstall in progress, or client interruptedWait if it is still running, otherwise helm uninstall (no earlier revision to go back to)
pending-upgradeUpgrade in progress, or client interruptedWait if it is still running, otherwise helm rollback
pending-rollbackRollback in progress, or client interruptedWait if it is still running, otherwise rerun helm rollback
supersededOld revisionNormal after an upgrade

helm get: detailed investigation

helm get retrieves the information stored by Helm for a release:

Terminal window
helm get manifest demo -n helm-demo

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


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 verification

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

Terminal window
helm plugin install https://github.com/databus23/helm-diff --verify=false

Output recorded with Helm v4.3.2 on 2026-11-17:

WARNING: Skipping plugin signature verification
Downloading https://github.com/databus23/helm-diff/releases/latest/download/helm-diff-linux-amd64.tgz
Preparing to install into /home/ansible/.local/share/helm/plugins/helm-diff
Installed plugin: diff

The 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 SOURCE
diff 3.15.15 cli/v1 legacy unknown unknown

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

Terminal window
helm diff upgrade demo ./my-chart -n helm-demo --set replicaCount=3

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

my-chart/templates/deployment.yaml
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: http

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

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

Terminal window
helm upgrade --install demo ./my-chart -n helm-demo

2. "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 found

Helm does not find the release in the namespace queried. Check the namespace and the name of the release.

Terminal window
helm list -A # Lists all the releases in all namespaces

3. "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 YAML

A 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.yaml
something:
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 progress

This 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 DESCRIPTION
1 Tue Nov 17 14:49:56 2026 deployed my-chart-0.1.0 1.16.0 Install complete
2 Tue Nov 17 14:49:57 2026 pending-upgrade my-chart-0.1.0 1.16.0 Preparing upgrade

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

Terminal window
# See the history
helm history demo -n helm-demo
# Roll back to the last successful revision (here the 1st)
helm rollback demo 1 -n helm-demo

Output of the rollback, recorded on the same release:

Rollback was a success! Happy Helming!
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 Tue Nov 17 14:49:56 2026 superseded my-chart-0.1.0 1.16.0 Install complete
2 Tue Nov 17 14:49:57 2026 pending-upgrade my-chart-0.1.0 1.16.0 Preparing upgrade
3 Tue Nov 17 14:50:05 2026 deployed my-chart-0.1.0 1.16.0 Rollback to 1

Revision 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 @:

templates/cm-a.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: trial
data:
password: @secret
Terminal window
helm template t ./my-chart
Error: 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 YAML

The 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) failed

The 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" error
password: @secret
# ❌ Bad: ": " in the value, "mapping values are not allowed" error
password: value: other
# ✅ Good
password: "@secret"
password: "value: other"
# ✅ Good, when the value comes from the values
password: {{ .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.

SymptomMost probable causeThe command that settles it
cannot reuse a name that is still in usea release with the same name already existshelm list -n <ns>
another operation ... is in progressinterrupted operation, pending-upgrade statushelm history <rel> -n <ns>
failed revision, previous one deployedfailed upgrade: the previous one stays active, but some resources may have changedhelm history <rel> -n <ns>
pre-upgrade hooks failed: ... Job Faileda hook Job exited with an errorkubectl logs -n <ns> job/<name>
A hook Job stays afterwardsno hook-delete-policy on this hookkubectl get job -n <ns>
invalid ownership metadatathe resource already exists outside this releasekubectl get <res> -n <ns> -o yaml
server-side apply failed ... field is immutablefield that cannot be modified after creationhelm diff upgrade, then a deliberate recreation
no matches for kind ... the API has disappeared from the clusterhelm get manifest <rel> -n <ns>
... is forbidden: User ... cannot get resourceinsufficient RBAC rights on a typekubectl auth can-i <verb> <type> --as <user>
Resource still there after uninstallCRD, namespace or object outside the releasekubectl get crd, kubectl get all -n <ns>
--set override without effect, no errorkey absent from the chart, hence ignoredhelm get values <rel> -n <ns>
Block absent locally, present after installlookup or .Capabilities in the charthelm install --dry-run=server
strict decoding error: unknown field or cannot unmarshal string into Go struct fieldunknown field or wrong type in the rendered manifesthelm 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-demo
Error: 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-demo
Error: 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-demo
Error: failed to delete release: gad

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

Terminal window
helm upgrade demo ./app -n demo --set replicaZ=42 # STATUS: deployed, no alert (expected form)
helm get values demo -n demo # replicaZ: 42 ... and yet
kubectl get deploy demo-web -n demo -o jsonpath='{.spec.replicas}' # 1

The 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 get
information 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, then helm status and helm get) and stop at the first check that fails.
  • helm lint fails on [ERROR]; with --strict, [WARNING] messages fail too, but not [INFO].
  • --dry-run=server reads 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 to kubectl apply --dry-run=server -f -.
  • A --set key that the chart does not read is silently accepted: compare helm get values with 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 upgrade in production, run helm diff upgrade with exactly the same arguments.

The table below sorts the commands according to whether or not they need a cluster.

CommandUsageWithout a cluster
helm lintValidate the syntax of the chartYes
helm templateSee the generated manifestsYes
helm diff upgradePreview the changesNo
helm install --dry-run=serverSimulation against the clusterNo
helm statusState of a releaseNo
helm get manifestDeployed manifestsNo
helm get valuesValues usedNo

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

8 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