Lesson 1 of 9 · 20m
Helm's Real Mental Model: Chart, Values, Release
Why Helm is release management plus templating, not a package manager in the npm sense — and the three objects you must keep separate in your head.
The first Helm incident I debugged was not a templating bug. Someone had copied a values-prod.yaml from another service, changed the image tag, and silently kept a 1 Gi memory limit for a Java service that needed 6 Gi. Helm dutifully rendered exactly what it was told to render. That is the lesson: Helm is not a safety system. It is a rendering and release system.
The three nouns
- Chart: versioned templates plus default configuration.
- Values: the environment-specific input to those templates.
- Release: the installed instance of a chart in a cluster and namespace.
helm upgrade --install payments ./charts/payments --namespace payments --create-namespace --values env/prod-values.yaml --set image.tag=2026.11.30The command is named upgrade --install for a reason: in production you use one idempotent path. If the release does not exist it is installed; if it exists it is upgraded. Avoid separate snowflake install commands.
Helm renders locally; Kubernetes enforces remotely
helm template and helm upgrade both evaluate templates, but only the API server validates whether the resulting objects can exist. A template can produce YAML that is syntactically valid and operationally absurd: no resource requests, a mutable latest tag, a ServiceAccount with cluster-admin, or two StatefulSets pointing at the same volume claim.
Use rendering commands during development:
helm template payments ./charts/payments -f env/prod-values.yaml
helm lint ./charts/payments
helm diff upgrade payments ./charts/payments -f env/prod-values.yamlhelm diff is a plugin, not core Helm, but it is close to mandatory in production teams. Reviewing rendered diffs catches mistakes that code review misses because the reviewer does not mentally evaluate templating branches.
Values are the public API
Treat every key in values.yaml as a compatibility promise. Renaming image.tag to image.version breaks consumers. A good chart exposes deliberate choices (replicaCount, resources, ingress.hosts, persistence.enabled) and hides internal implementation details in helpers.
Field notes
- Never use
--setfor production policy that belongs in version control; use it for one-off overrides and debugging. helm rollbackrestores Kubernetes objects, not external state. It cannot un-migrate a database.- Helm stores release state in Secrets or ConfigMaps in the cluster. Losing that state is painful but not necessarily fatal.
- If the chart input cannot be explained to the on-call engineer in one minute, it is too clever.
Was this lesson helpful?