Helm Cheatsheet
Top commands.
Overview
Helm is the package manager that turns raw Kubernetes manifests into reusable, parameterised applications. Five primitives carry most of the operational work: charts, releases, templating, lifecycle hooks, and the public chart ecosystem. Fluency in those five is the difference between copy-pasting YAML and shipping packaged software.
- Charts. Packaged Kubernetes manifests with Go-template parameters. The unit of reuse for an application.
- Releases. Named instances of a chart deployed into a namespace. The unit of operational tracking.
- Templating with
values.yaml. Per-environment overrides on a single chart. Dev, staging, and prod deploy the same code shape with different values. - Lifecycle hooks plus public charts. Pre-install, post-install, pre-upgrade hooks for complex deploys;
artifacthub.iofor the common workloads nobody should re-implement.
The approach
Five commands carry most of the operational weight. Memorising them moves the team from one-off kubectl apply to packaged, reviewable releases.
helm upgrade --install. Idempotent install-or-upgrade in one command. The default verb in deploy pipelines.helm template. Render the chart locally without touching the cluster. The review step before any apply.helm diff upgrade. Plugin that shows what would actually change. Catches the surprises before they happen.- Layered values plus
helm rollback.-f values.yaml -f values-prod.yamlfor environment-specific config;helm rollbackreverts to the last known-good release in seconds.
Why this compounds
Each chart captures application packaging once and reuses it everywhere. The team's chart library grows quarter over quarter; new applications inherit the conventions instead of recreating them.
- Reusable packaging. One chart, many environments and many clusters. Operational surface stays small.
- Environment consistency. Same chart, different values, identical structure. Drift between dev and prod shrinks.
- Faster recovery.
helm rollbackreverts in seconds. MTTR on bad deploys drops to single digits. - Year-one investment, year-two habit. The first chart is a learning exercise. By the third, the patterns are settled and authoring is fast.