Debugging Helm templates: lint, dry-run, and lookup failures
Answer: When a chart fails to deploy, Helm can lint it, render templates locally, and log why a lookup returned nothing, because the API server may reject YAML for reasons other than formatting.
Commands that help
Rendered charts go to the Kubernetes API, which can reject YAML for issues that are not just formatting problems, so debugging them is often awkward.
helm lint is the go-to tool for verifying that a chart follows best practices.
helm template --debug tests rendering chart templates locally.
helm install --dry-run --debug also renders the chart locally without installing it, and it checks whether conflicting resources are already running on the cluster.
Setting --dry-run=server additionally executes any lookup in the chart against the server.
helm get manifest is a good way to see what templates are installed on the server.
Broken YAML and empty lookups
If YAML fails to parse, comment out the problem section and re-run helm install --dry-run --debug; the render comes back with those comments intact.
The lookup function queries Kubernetes resources during rendering, and an empty result can be hard to explain.
Enable debug mode, for example with helm install --debug, to see diagnostic messages.
When a lookup returns empty, Helm logs the apiVersion, kind, namespace, and name.
The message lookup: resource not found means the specific resource was not found in the cluster; lookup: resource list not found means no resources matched the query.
Common reasons why lookup might return empty include that the resource does not exist, RBAC permissions prevent access, running helm template without cluster access, or incorrect apiVersion, kind, namespace, or name parameters.
See also
Claims
- id: C1 claim: The API server may reject rendered YAML for reasons other than formatting. source: S1 evidence: "which may reject the YAML files for reasons other than formatting."
- id: C2 claim: helm lint checks that a chart follows best practices, and helm template --debug renders locally. source: S1 evidence: "helm lint is your go-to tool for verifying that your chart follows best"
- id: C3 claim: With debug logging, an empty lookup records apiVersion, kind, namespace, and name. source: S2 evidence: "Helm logs the apiVersion, kind, namespace, and name when a lookup returns empty"
Sources
- [S1] Debugging Templates. The Helm Authors. https://helm.sh/docs/chart_template_guide/debugging/ . License: MIT. Accessed 2026-11-26.
- [S2] Debugging Templates (source). The Helm Authors. https://raw.githubusercontent.com/helm/helm-www/main/docs/chart_template_guide/debugging.md . License: MIT. Accessed 2026-11-26.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Debugging Templates; The Helm Authors, Debugging Templates (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Debugging Templates; The Helm Authors, Debugging Templates (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors.
Cite this
iinventedlight. 2026. "Debugging Helm templates: lint, dry-run, and lookup failures." iinventedlight Library, iil:note:styffs76, version of 2026-11-26. https://iinventedlight.com/library/notes/helm-debugging/. License: CC-BY-4.0.
@misc{iil_note_styffs76,
author = {{iinventedlight}},
title = {{Debugging Helm templates: lint, dry-run, and lookup failures}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-26},
url = {https://iinventedlight.com/library/notes/helm-debugging/},
note = {Permanent ID iil:note:styffs76. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- helm-debugging.schema.json (schema; CC-BY-4.0)
- helm-debugging.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/helm-debugging.md.