← Back to cheat sheets

Containers & Orchestration

Helm cheat sheet

Helm packages and manages Kubernetes apps as charts.

On this page

Table of contents

Use this page for fast recall. Use Full documentation when you want the complete end-to-end path.

Quick workflow

A simple 5-step flow you can follow when using Helm in real work.

1) Setup

Install/run the tool and confirm version. Create a minimal config.

2) Small change

Do one small action end-to-end to prove the workflow.

3) Validate

Check output, logs, and status. Catch mistakes early.

4) Automate

Convert it into a repeatable script or pipeline step.

5) Productionize

Add safety: secrets, rollback, observability, and docs.

Workflows you will actually reuse

These are practical sequences you can copy into your own checklist or runbook.

Safe Helm upgrade

Goal: Upgrade without surprises by rendering, reviewing, and monitoring rollout.

- Fetch current values (`helm get values`).

- Render locally (`helm template`) to review changes.

- Run `helm upgrade --install` in a namespace.

- Watch Kubernetes rollout status and events.

- Rollback using `helm rollback` if needed.

Key Concepts

- Charts

- Templates

- Releases

Learning path (high-level):

- Chart structure

- Values management

- Release strategies

Quick Start

Create chart

Command

helm create my-chart

Install release

Command

helm install my-release ./my-chart

Upgrade release

Command

helm upgrade my-release ./my-chart

Common Commands

Short descriptions and practical intent. Search, filter, copy, and reuse.

Showing 20

Basics
helm version

Show Helm version.

Repos
helm repo list

Show configured Helm repositories.

Repos
helm repo add bitnami https://charts.bitnami.com/bitnami

Add a chart repository.

Repos
helm repo update

Update repo index.

Repos
helm search repo nginx

Search charts in repositories.

Inspect
helm show values bitnami/nginx

Inspect default values.

Inspect
helm show chart bitnami/nginx

Inspect chart metadata.

Author
helm create my-chart

Create a new chart scaffold.

Author
helm lint ./my-chart

Validate chart structure.

Deploy
helm template myrel ./my-chart -f values.yaml

Render Kubernetes YAML locally.

Deploy
helm install my-release ./my-chart -n myns --create-namespace

Install a release.

Deploy
helm upgrade my-release ./my-chart -n myns

Upgrade a release.

Deploy
helm upgrade --install my-release ./my-chart -n myns

Upsert: install or upgrade.

Operate
helm list -A

List releases in all namespaces.

Operate
helm status my-release -n myns

Show release status and resources.

Operate
helm get values my-release -n myns

Get the values used for a release.

Operate
helm get manifest my-release -n myns

Get rendered manifest for a release.

Operate
helm history my-release -n myns

Show revision history.

Operate
helm rollback my-release 2 -n myns

Rollback to a revision.

Operate
helm uninstall my-release -n myns

Remove a release.

Copyable snippets

Small blocks you can drop into your terminal, config, or runbook.

Render YAML to review before deploy

bash

helm template myrel ./chart -n myns -f values.yaml | less

Troubleshooting checklist

When things break, follow this order to stay calm and move fast.

- If install fails: check namespace, permissions, and rendered YAML (`helm template`).

- If resources look wrong: inspect the manifest (`helm get manifest`) and values used.

- If rollback is needed: use `helm history` then rollback to a known-good revision.

Pitfalls

The common mistakes that slow people down when using Helm.

- Copy-pasting commands without understanding inputs/outputs and side effects.

- Not documenting defaults (ports, paths, credentials) and then getting stuck in prod.

- Skipping logs and metrics when troubleshooting; always collect evidence first.

Mini lab (practice)

Do these tasks in order. You will feel the tool instead of just reading about it.

- Install or run the tool locally (or in Docker) and verify it works with a hello-world action.

- Create a minimal config and run the most common command 3 times (with a small change each time).

- Break something on purpose and document how you debugged it in your Notes.

Interview prompts

Use these to test if you truly understand the basics (and can explain them clearly).

- Explain the tool’s role in a real CI/CD pipeline from commit to production.

- Describe the most common failure you’ve seen with this tool and how you fixed it.

- What would you monitor/alert on for this tool in production?

Official Docs

https://helm.sh/docs/