Helm Charts Explained: Packaging and Deploying Apps on Kubernetes
What Helm is, chart structure, values and templates, install/upgrade/rollback, OCI registries, and best practices for maintainable charts.
Published December 2, 2026
Real applications need many Kubernetes manifests: Deployments, Services, ConfigMaps, Ingress or Gateway routes, HPAs, RBAC. Helm packages them into a chart with configurable values, so the same chart can deploy to dev, staging and production with different settings, and each deployment becomes a versioned release you can upgrade or roll back.
The concept
A chart is a directory with Chart.yaml (metadata and version), values.yaml (default configuration) and templates/ (Kubernetes manifests written as Go templates). At install time Helm renders the templates with the values, sends the manifests to the cluster, and records the release. Users override values with -f files or --set flags.
Charts are shared through repositories, increasingly OCI registries (the same registries that store container images). Many popular infrastructure components (ingress controllers, cert-manager, monitoring stacks) are installed with official charts. For your own apps, keep templates simple and readable; heavy template logic makes charts hard to debug.
Chart structure
How Helm works
Everyday commands
| Command | Purpose |
|---|---|
| helm install app ./chart -f prod.yaml | Create a release |
| helm upgrade --install app ./chart | Install or upgrade idempotently (CI-friendly) |
| helm rollback app 4 | Return to revision 4 |
| helm template ./chart | Render locally without installing |
| helm diff upgrade (plugin) | Preview changes before applying |
| helm push chart.tgz oci://registry/charts | Publish to an OCI registry |
Practical examples
Template using values
Keep logic minimal and readable.
# templates/deployment.yaml (excerpt)
spec:
replicas: {{ .Values.replicaCount }}
template:
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
resources: {{- toYaml .Values.resources | nindent 16 }}Environment overrides
One chart, many environments.
# values-prod.yaml
replicaCount: 4
image: { tag: "2.3.1" }
resources:
requests: { cpu: 500m, memory: 1Gi }
limits: { memory: 1Gi }Install from an OCI registry
Pin chart versions for reproducibility.
helm upgrade --install cert-manager oci://quay.io/jetstack/charts/cert-manager \
--version v1.16.2 --namespace cert-manager --create-namespace --set crds.enabled=trueCommon mistakes
- Complex template logic that nobody can read or test.
- Unpinned chart versions in production.
- Storing secrets in plain values files committed to git.
- Editing resources by hand after Helm installed them, causing drift.
Key takeaways
- Helm packages manifests as charts with configurable values.
- Releases are versioned: upgrade and roll back easily.
- Use helm template / diff to preview changes.
- Keep templates simple and pin versions.
FAQ
Helm or Kustomize?
Helm suits distributing configurable packages; Kustomize suits patching plain YAML per environment. Many teams use both, or Helm via GitOps tools.
Does Helm 3 need Tiller?
No. Helm 3 removed Tiller; it talks directly to the Kubernetes API with your credentials.
How do I handle CRDs?
Charts can include CRDs, but upgrades of CRDs need care; many projects install CRDs separately.