Difficulty: Intermediate
What is Helm, what is a Helm chart, and how does Helm manage releases?
Helm is the package manager for Kubernetes. A Helm chart is a versioned package of templated Kubernetes manifests plus default configuration (values.yaml), and Helm renders those templates with your values, applies the result to the cluster, and tracks it as a named release that you can upgrade or roll back.
A chart is just a directory (or a .tgz of one) with a fixed layout:
Chart.yaml: name, chart version, appVersion, and dependenciesvalues.yaml: default configuration such as image tag, replica count, resourcestemplates/: manifests written as Go templates with Sprig functions, for example replicas: {{ .Values.replicaCount }}templates/_helpers.tpl: reusable named templates for labels and namescharts/: dependent sub-charts, such as a Bitnami PostgreSQL or Redis chartThe same chart can deploy to dev, staging and prod by passing different values files, so a team at Flipkart might keep one chart per service and a values-prod.yaml with more replicas and larger limits.
When you run helm upgrade --install, Helm:
-f file in order, then --set flags (last wins).--wait.sh.helm.release.v1.<release>.v<revision> in the release namespace.Because each revision is stored, helm history shows past versions and helm rollback <release> <revision> re-applies an earlier one. Helm 3 removed the old in-cluster Tiller component, so Helm now uses your kubeconfig credentials and RBAC directly. Helm 4, released in late 2025, keeps the same chart format, so existing apiVersion v2 charts continue to work.
Charts are shared through classic HTTP chart repositories (helm repo add) or, increasingly, OCI registries such as Docker Hub, GHCR, ECR or Artifact Registry using helm push and oci:// URLs. Artifact Hub is the public index for finding community charts like ingress-nginx, cert-manager and kube-prometheus-stack.
if/range logic makes charts hard to read. For simple per-environment tweaks, Kustomize is often cleaner.kubectl edit on a Helm-managed object, the next upgrade may overwrite it. Treat Helm (or GitOps on top of it) as the only writer.crds/ directory are installed once and are never upgraded or deleted by Helm, so CRD upgrades need a separate step.values.yaml; use External Secrets, Sealed Secrets or SOPS.helm template, helm lint and helm diff (a plugin) catch mistakes before they reach the cluster.In production, Helm is commonly driven by GitOps tools like Argo CD or Flux, which render the chart and keep the cluster in sync with Git.
# values.yaml
replicaCount: 2
image:
repository: ghcr.io/acme/checkout
tag: "1.4.0"
# templates/deployment.yaml (excerpt)
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "checkout.fullname" . }}
spec:
replicas: {{ .Values.replicaCount }}
template:
spec:
containers:
- name: app
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Templates reference .Values; changing values.yaml or passing -f values-prod.yaml changes the rendered manifests without editing the templates.
# Install or upgrade in one idempotent command
helm upgrade --install checkout ./checkout \
-n shop --create-namespace \
-f values-prod.yaml --set image.tag=1.5.0 --wait
# Preview the rendered YAML without touching the cluster
helm template checkout ./checkout -f values-prod.yaml
helm list -n shop
helm history checkout -n shop
helm rollback checkout 3 -n shop
# Install a chart from an OCI registry
helm install redis oci://registry-1.docker.io/bitnamicharts/redis
upgrade --install is the standard CI command because it works whether or not the release already exists.
Helm Chart, values.yaml, Go Templates, Releases and Rollback, OCI Registry