What is Helm? The Kubernetes package manager explained
Charts, values, templates, releases, and OCI registries: understand how Helm works, the everyday commands, when to use Helm, Kustomize, or plain manifests, and how to combine it with GitOps.
Kubernetes$ helm search repo podinfo --versions▍Installing a database, an ingress controller, or an observability stack on Kubernetes can take dozens of manifests: Deployments, Services, ConfigMaps, RBAC, CRDs. Copying that YAML from a README and editing it by hand doesn’t scale — and upgrading later is even worse. Helm solves this the same way apt or brew do on your operating system: by packaging everything into a versioned, configurable, reinstallable unit.
What Helm is
Helm is the Kubernetes package manager and a CNCF graduated project. It does three things:
- Packages a set of parameterized manifests into a chart;
- Renders those manifests by combining templates with your values;
- Manages the lifecycle of the installation: upgrades, history, and rollbacks.
A bit of history: up to Helm 2, there was a component called Tiller, which ran inside the cluster with broad permissions and applied the charts. Helm 3 removed Tiller: today helm is just a client that talks directly to the Kubernetes API, using the permissions from your kubeconfig. For features in newer versions, check the official documentation.
The core concepts
| Concept | What it is |
|---|---|
| Chart | The package: templates, default values, and metadata |
| Values | The configuration you provide to customize the chart |
| Template | A YAML manifest with Go template markup ({{ .Values... }}) |
| Release | One installation of a chart in the cluster, with a name (e.g., web) |
| Revision | Every install, upgrade, or rollback creates a new revision of the release |
| Repository | An HTTP server with an index.yaml listing charts and versions |
| OCI registry | A container registry (GHCR, ECR, Harbor…) that also stores charts |
The same chart can become several releases — web-staging and web-prod, for example — each with its own values. Helm stores the state of each revision in Secrets in the release namespace.
Anatomy of a chart
The helm create my-app command generates this structure:
my-app/
├── Chart.yaml # name, chart version, appVersion, dependencies
├── values.yaml # default values
├── charts/ # subcharts (dependencies)
└── templates/
├── _helpers.tpl # reusable functions (names, labels)
├── deployment.yaml
├── service.yaml
└── NOTES.txt # message shown after installation
In Chart.yaml, version is the chart version and appVersion is the version of the packaged application. Files starting with _, like _helpers.tpl, don’t produce manifests: they only define reusable snippets.
A template in practice
A template is regular YAML with expressions inside double curly braces:
# templates/deployment.yaml (excerpt)
spec:
replicas: {{ .Values.replicaCount }}
template:
spec:
containers:
- name: app
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
ports:
- containerPort: {{ .Values.service.port }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
And the default values that feed that template:
# values.yaml
replicaCount: 2
image:
repository: registry.example.com/your-org/my-app
tag: "" # empty = use the appVersion from Chart.yaml
service:
port: 8080
resources:
requests:
cpu: 100m
memory: 128Mi
.Values comes from the values, .Chart from Chart.yaml, and .Release from the installation (name, namespace, revision). To write charts your team can maintain — schemas, helpers, tests, versioning — see the 10 Helm chart best practices.
Essential commands
The typical flow for someone consuming charts, using the public podinfo chart as an example:
# repositories
helm repo add podinfo https://stefanprodan.github.io/podinfo
helm repo update
helm search repo podinfo --versions
# see what can be configured
helm show values podinfo/podinfo > values-prod.yaml
# install with a pinned version and your own values
helm install web podinfo/podinfo \
--namespace web --create-namespace \
--version <version> \
-f values-prod.yaml --set replicaCount=3
# install straight from an OCI registry, no "repo add"
helm install web oci://ghcr.io/stefanprodan/charts/podinfo --version <version> -n web
# upgrade (or install if missing) with automatic rollback on failure
helm upgrade --install web podinfo/podinfo -n web -f values-prod.yaml --atomic --timeout 5m
# inspect, roll back, and remove
helm list -A
helm history web -n web
helm get values web -n web
helm rollback web 2 -n web
helm uninstall web -n web
# render and validate locally, without touching the cluster
helm template web podinfo/podinfo -f values-prod.yaml
helm lint ./my-app
Value precedence: the chart’s values.yaml is overridden by -f files (the last one wins), which are in turn overridden by --set. Prefer files versioned in Git over long --set lines.
Helm, Kustomize, or plain manifests?
| Criterion | Plain manifests | Kustomize | Helm |
|---|---|---|---|
| How it works | YAML applied with kubectl apply |
Patches and overlays on a base, no templates | Templates + values, packaged and versioned |
| Distribution | Copying files | Directories in Git | HTTP repositories and OCI registries |
| Lifecycle | None | None | Releases, history, rollback, and hooks |
| Learning curve | Minimal | Low | Medium (template syntax) |
| Best for | A few resources, demos | Per-environment variations of your own app | Third-party software and reusable apps |
The tools are not mutually exclusive: it’s common to install third-party software via Helm and tune your own app with Kustomize — which can even render charts with the helmCharts field and the --enable-helm flag.
Helm with GitOps
In GitOps, nobody runs helm upgrade by hand: the desired state lives in Git and a controller applies it.
- Argo CD renders the chart (equivalent to
helm template) and applies the manifests itself. That’s why the application doesn’t show up inhelm list— Argo CD owns the lifecycle. See what is Argo CD. - Flux uses the helm-controller with the
HelmReleaseresource, which actually runs Helm; releases do show up inhelm list:
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: web
namespace: web
spec:
interval: 10m
chart:
spec:
chart: podinfo
version: "6.x"
sourceRef:
kind: HelmRepository
name: podinfo
namespace: flux-system
values:
replicaCount: 3
More details in what is Flux CD.
Security: trust, but verify
A chart runs whatever its author wrote in your cluster — including ClusterRoles, privileged containers, and hooks that run Jobs before installation.
- Trusted sources: prefer charts maintained by the project itself or by verified publishers on Artifact Hub.
- Review what will be applied: run
helm templateand look for broad RBAC,hostPath,privileged, and hooks. - Pin versions: always use
--version(or a controlled range in GitOps). Ahelm repo updateshould never change what goes to production without review. - Verify provenance: charts with a provenance file can be checked with
helm verifyor--verify; in OCI registries, cosign signatures are common — see supply chain security. - Be careful with secrets in values: values are stored in the release Secret; anyone who can read Secrets in the namespace can read your values.
Checklist
- Understand the difference between a chart, a release, and a revision
- Inspect values with
helm show valuesbefore installing - Pin the chart version with
--versionin every environment - Use
helm upgrade --install --atomicin pipelines - Review the output of
helm templatebefore applying third-party charts - Keep per-environment values in Git and apply them through Argo CD or Flux
Helm doesn’t make Kubernetes simpler — it makes the complexity packageable, versioned, and reversible.