Helm is the package manager for Kubernetes — a chart is a parameterised template tree that renders into manifests. The right way to use it is small and predictable: one chart version pinned per environment, values committed to Git, no helm install --set ad-hoc edits in production, and a diff before every upgrade. This article covers the install, the release model, values precedence, and the upgrade workflow with rollback.
How to verify
What Helm sees and what’s actually installed:
helm version
helm repo list
helm list -A
helm get values ingress-nginx -n ingress-nginx
helm version confirms the client is recent. repo list shows configured repositories — empty after a fresh install. helm list -A lists every release across namespaces with chart version, app version, and status. get values dumps the values used at install time (without --all, only the user-overrides; with --all, defaults too).
To diff before applying:
helm plugin install https://github.com/databus23/helm-diff
helm diff upgrade ingress-nginx ingress-nginx/ingress-nginx \
-n ingress-nginx -f values.yaml --version 4.10.0
What’s happening
Helm has two pieces in the modern world: the CLI and the release storage. Tiller (the server side) is gone — Helm 3 stores releases as Kubernetes Secrets in the namespace where the release lives (named sh.helm.release.v1.<release>.v<rev>). A release is “this chart at this version, with these values, installed under this name in this namespace.” Reinstalling under the same name is upgrade; installing under a new name is a new release.
A chart is a tarball or directory with Chart.yaml, values.yaml, and templates/. Templates are Go templates over the values; helm template renders without installing. The values precedence is, from lowest to highest: chart defaults (values.yaml in the chart), then -f values.yaml files in the order given, then --set key=value overrides.
Charts come from a repository (HTTP index) or an OCI registry. The repository model is older; OCI is the direction the ecosystem is moving. Either way, always pin --version. Without it, helm upgrade will silently jump to the latest chart, which may bring a major version of the underlying app.
The procedure
-
Add a repo and update the index. This is local — no cluster contact yet.
helm repo add bitnami https://charts.bitnami.com/bitnami helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx helm repo update helm search repo ingress-nginx --versions | head -
Inspect the chart before installing. Read the values it exposes:
helm show values ingress-nginx/ingress-nginx --version 4.10.0 > defaults.yaml helm show readme ingress-nginx/ingress-nginx --version 4.10.0 | less -
Install with a values file. Keep one
values-<env>.yamlper environment in Git. Never use--setfor production-critical configuration — it doesn’t show up in code review.# values-prod.yaml controller: replicaCount: 3 config: proxy-body-size: "50m" use-forwarded-headers: "true" service: externalTrafficPolicy: Local metrics: enabled: truehelm install ingress-nginx ingress-nginx/ingress-nginx \ --namespace ingress-nginx --create-namespace \ --version 4.10.0 \ -f values-prod.yaml \ --atomic --timeout 5m--atomicrolls back automatically if the install fails to reach Ready within the timeout. -
Upgrade with a diff. Always look at what’s changing before committing:
helm diff upgrade ingress-nginx ingress-nginx/ingress-nginx \ -n ingress-nginx --version 4.11.0 -f values-prod.yaml helm upgrade ingress-nginx ingress-nginx/ingress-nginx \ -n ingress-nginx --version 4.11.0 -f values-prod.yaml \ --atomic --timeout 5m -
Roll back when the upgrade misbehaves. Helm keeps history (default
--history-max=10):helm history ingress-nginx -n ingress-nginx helm rollback ingress-nginx 4 -n ingress-nginx -
Render without installing to inspect what will hit the cluster — useful in CI for static analysis:
helm template ingress-nginx ingress-nginx/ingress-nginx \ --version 4.10.0 -f values-prod.yaml > rendered.yaml -
Use OCI registries when a chart is hosted in a registry rather than a classic Helm repo:
helm registry login ghcr.io helm install argocd oci://ghcr.io/argoproj/argo-helm/argo-cd \ --version 6.7.10 -n argocd --create-namespace -f values.yaml
Common pitfalls
- Omitting
--versionis the most common production incident —helm upgradejumps to the latest, which can be a major release with breaking value renames. --setoverrides are not visible in Git — the next person to upgrade re-applies the values.yaml from the repo, silently undoing whatever was--set.- CRDs are not managed by Helm beyond initial install — chart authors that ship CRDs in
crds/install them once, but never upgrade them;kubectl apply -ffor CRDs in upgrade pipelines or follow the chart’s documented upgrade procedure. - Two releases of the same chart in the same namespace will collide on cluster-scoped resources (ClusterRoles, CRDs) — namespace per release for chart families that touch cluster scope.
helm uninstalldeletes the release Secret too, which means rollback is gone — back up the rendered manifests withhelm get manifestbefore destructive operations.
We operate Helm-based clusters for clients with versions pinned per environment, values in Git, GitOps reconciliation that catches helm upgrade --set drift, and rollback runbooks tested on the release history. See /en/services/managed-operations/.