Getting Started with Helm: Install, Upgrade and Roll Back Charts
Table of Contents
Updated November 2026: Rewritten for Helm 4: helm upgrade --install, helm list filters, history and rollback, OCI registries, and no more Helm 2 or stable-repo material.
Helm
is the package manager for Kubernetes
. Instead of applying a pile of YAML files with kubectl, you install a versioned package (a chart), and Helm keeps track of what it deployed, so you can upgrade it, see its history and roll it back. This post covers everything you need for day-to-day work: building a small chart, installing it, finding releases with helm list, and the upgrade and rollback lifecycle.
All commands in this post target Helm 4 (4.3 at the time of writing). Helm 4 shipped in November 2025, and Helm 3 stopped receiving security fixes in November 2026, so if you are still on Helm 3, now is the time to move. The commands shown here look the same on Helm 3, with the exceptions called out below.
Three Terms You Need
- Chart: the package. A folder (or a
.tgzarchive of it) with metadata inChart.yaml, default configuration invalues.yamland Kubernetes manifests as Go templates intemplates/. - Release: an installed instance of a chart in a cluster. You can install the same chart many times under different release names.
- Revision: every install, upgrade and rollback of a release creates a new, numbered revision. That is what makes
helm historyandhelm rollbackpossible.
Install the Helm CLI
Helm is a single binary for macOS, Linux and Windows. With Homebrew, it is one command; the installation guide covers the other package managers and the install script.
brew install helm
helm version --short
Helm talks to whatever cluster your current kubeconfig context points to, exactly like kubectl. Check kubectl config current-context before you install anything.
To get shell completion, add this to your .bashrc or .zshrc (helm completion --help lists fish and PowerShell as well):
# bash
source <(helm completion bash)
# zsh
source <(helm completion zsh)
Create a Chart
helm create my-app scaffolds a full chart with a Deployment, Service, Ingress, HTTPRoute, autoscaler and tests. That is a good reference, but too much to understand what a chart actually is. So let’s build a minimal one by hand:
mkdir -p first-chart/templates
touch first-chart/Chart.yaml first-chart/values.yaml first-chart/templates/serviceaccount.yaml
Chart.yaml holds the metadata. version is the version of the chart itself, appVersion the version of the app it deploys. See the Chart.yaml reference
for all fields.
apiVersion: v2
name: first-chart
description: A minimal Helm chart
type: application
version: 0.1.0
appVersion: "1.0.0"
The template creates a ServiceAccount. Helm renders it with the Go template language
plus the Sprig
functions, so you can pipe values through functions such as default and quote:
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Values.serviceAccount.name }}
labels:
app.kubernetes.io/managed-by: {{ .Release.Service }}
environment: {{ .Values.environment | default "development" | quote }}
.Values comes from values.yaml and whatever the user overrides; .Release holds built-in objects
like the release name and namespace. The defaults in values.yaml double as the documentation of your chart’s API:
# environment falls back to "development" in the template
environment: ""
serviceAccount:
name: sample-sa
Check a Chart Without a Cluster
Three commands work entirely offline, and I run them before every install:
# find structural problems and template errors
helm lint first-chart
# render the manifests locally, with and without overrides
helm template demo first-chart
helm template demo first-chart --set environment=production
# package the chart as first-chart-0.1.0.tgz
helm package first-chart
helm template prints exactly what Helm would send to the cluster:
---
# Source: first-chart/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: sample-sa
labels:
app.kubernetes.io/managed-by: Helm
environment: "production"
Install a Release
helm install my-app ./first-chart --namespace demo --create-namespace
my-app is the release name, ./first-chart can also be a .tgz archive, a repo/chart reference or an oci:// URL. Override values with --set key=value or with a file via -f my-values.yaml; later flags win. If you don’t care about the name, use --generate-name instead.
In practice, I rarely use helm install directly. helm upgrade --install installs the release if it doesn’t exist and upgrades it otherwise, so the same command works on the first and on every later run. That is what you want in CI/CD pipelines:
helm upgrade --install my-app ./first-chart \
--namespace demo --create-namespace \
-f values-prod.yaml \
--wait --rollback-on-failure
--wait waits until the resources are ready, and --rollback-on-failure rolls back automatically when the upgrade fails. On Helm 3, that last flag is called --atomic; Helm 4 renamed it.
One more Helm 4 change: new releases are applied with Kubernetes server-side apply by default. Existing releases keep the method they were installed with (--server-side=auto), so upgrading the CLI doesn’t change how your current releases are applied.
List Releases with helm list
helm list (alias helm ls) only shows releases in the current namespace. That is the number one reason why “my release is gone” when it isn’t. Use -n for a specific namespace or -A for all of them:
# releases in the current namespace
helm list
# releases in one namespace
helm list -n demo
# releases in all namespaces
helm list -A
The table shows NAME, NAMESPACE, REVISION, UPDATED, STATUS, CHART and APP VERSION for each release.
By default, helm list shows releases in any status (older Helm 3 versions hid everything except deployed and failed releases unless you passed --all). Status filters narrow it down, and you can combine them:
# only failed releases, across the cluster
helm list -A --failed
# stuck releases (pending-install, pending-upgrade, pending-rollback)
helm list -A --pending
# releases removed with `helm uninstall --keep-history`
helm list -A --uninstalled
The remaining filters are --deployed, --superseded and --uninstalling. A few more flags I use a lot:
# release names matching a regular expression
helm list -A --filter '^my-'
# names only, handy in scripts
helm list -n demo -q
# machine-readable output
helm list -A -o json
# newest first
helm list -A --date --reverse
To look at a single release, use helm status my-app -n demo for its state and notes, and helm get values my-app -n demo or helm get manifest my-app -n demo to see what is actually deployed.
Upgrade, History and Rollback
Let’s ship a change. Add a label to the template, bump version in Chart.yaml to 0.2.0, and upgrade:
helm upgrade my-app ./first-chart -n demo
Values you passed during install are not carried over automatically. Pass the same -f/--set flags again (my preference, because the command stays reproducible), or use --reuse-values to take the previous release’s values and merge new overrides on top.
Each upgrade creates a new revision, and the previous one becomes superseded. Rollbacks follow the same rule:
Every install, upgrade and rollback writes a new revision
# all revisions of the release with status and description
helm history my-app -n demo
# roll back to revision 1
helm rollback my-app 1 -n demo
# roll back to the previous revision
helm rollback my-app -n demo
A rollback doesn’t delete revision 2. It creates revision 3 with the manifest and values of revision 1, and helm history shows “Rollback to 1” as its description (--show-rollback-revision adds a dedicated column). Because history is append-only, you can always see what happened and roll forward again. Helm keeps up to 10 revisions per release by default; tune that with --history-max on helm upgrade.
Uninstall a Release
helm uninstall my-app -n demo
This deletes all resources of the release and its history. With --keep-history, Helm keeps the history and marks the release uninstalled, which is what helm list --uninstalled shows and what lets you helm rollback it later.
Use Charts from Repositories and OCI Registries
There are two ways to distribute charts today. Classic Helm repositories are HTTP servers with an index.yaml, and you register them by name:
helm repo add podinfo https://stefanprodan.github.io/podinfo
helm repo update
helm search repo podinfo
helm install podinfo podinfo/podinfo -n demo
OCI registries (GHCR, Docker Hub, ECR, ACR, Harbor, and so on) store charts like container images. There is no helm repo add; you reference the chart by URL, and helm registry login handles private registries:
helm show values oci://ghcr.io/stefanprodan/charts/podinfo
helm install podinfo oci://ghcr.io/stefanprodan/charts/podinfo --version 6.17.0 -n demo
Publishing works the same way: helm package your chart, then helm push first-chart-0.1.0.tgz oci://ghcr.io/<user>/charts. Most projects now publish OCI charts, and for new charts I would always pick a registry over a repository.
Old tutorials (including the first version of this post) use helm repo add stable https://kubernetes-charts.storage.googleapis.com/. That repository was shut down in 2020. To find charts today, browse Artifact Hub
or search it from the CLI; --list-repo-url adds the repository URL to each result:
helm search hub podinfo --list-repo-url
Before you add a third-party repository, check with your team whether your organization trusts it. A chart runs with whatever permissions your kubeconfig has.
helm show chart, helm show values and helm show readme work on all three chart sources (local folder, repo/chart and oci://) without touching a cluster, so they are the quickest way to see what a chart expects before you install it.