Helm & application packaging

Charts, values layering per environment, hooks, rollbacks, chart repos — and when raw manifests with Kustomize are the saner choice.

About 30 min read3-question knowledge check

The mental model

A Kubernetes application is rarely one YAML file. A modest service is a Deployment, a Service, an Ingress, a ConfigMap, a Secret, an HPA, a PDB, a ServiceAccount — eight files that must be versioned together, deployed together, and differ slightly in every environment. Helm exists because copying those eight files into three environment folders and hand-editing them does not survive contact with a real team.

The analogy that sticks: Helm is apt/npm for Kubernetes, plus a template engine. A **chart** is the package (like a .deb): templates plus default values plus metadata. **Values** are the configuration you pass at install time, the way you would pass flags. A **release** is one *installed instance* of a chart in a cluster — you can install the same chart three times under different release names, and each keeps its own history. **Revisions** are that history: every upgrade creates revision N+1, and helm rollback goes back to any earlier one.

What Helm actually does is simpler than it looks: it takes your templates, substitutes values into them, produces plain Kubernetes manifests, and applies them. The rendered output is ordinary YAML — there is no Helm runtime in the cluster interpreting anything at runtime. Helm 3 stores each release's rendered manifest in a Secret in the release's namespace (sh.helm.release.v1.<name>.v<n>), which is how rollback and diff work with no Tiller and no cluster-side component.

The one honest caveat to carry into interviews: Go templating over YAML is string manipulation, and whitespace is significant. That is Helm's real cost, and it is why Kustomize exists as the "no templates, just overlays" alternative.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision