What is Helm?
In one line: Helm is the package manager for Kubernetes — it bundles all the YAML for an application into a reusable, versioned "chart" with configurable values, and manages installs, upgrades and rollbacks.
The problem it solves: a real app needs a Deployment, Service, Ingress, ConfigMap, Secret, HPA and ServiceAccount — and slightly different values for each environment. Copying and editing YAML files by hand for every environment is error-prone.
Key concepts:
- Chart — a package: templates + default
values.yaml+Chart.yamlmetadata. - Values — settings you can override per environment (image tag, replicas, resources).
- Release — an installed instance of a chart in a cluster (for example
orders-prod). - Repository — where charts are stored (an HTTP repo or an OCI registry like ECR/ACR/GHCR).
Chart structure:
orders/
Chart.yaml
values.yaml
values-prod.yaml
templates/
deployment.yaml
service.yaml
ingress.yaml
Template example:
spec:
replicas: {{ .Values.replicaCount }}
template:
spec:
containers:
- name: orders
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Common commands:
helm install orders ./orders -f values-prod.yaml
helm upgrade --install orders ./orders --set image.tag=1.4.3
helm history orders
helm rollback orders 4
helm template ./orders # render YAML locally to review
helm lint ./orders
Benefits: reusable templates, per-environment values, versioned releases, easy rollback, and a huge ecosystem of public charts (ingress-nginx, Prometheus, cert-manager).
Alternatives/complements: Kustomize (overlays without templates, built into kubectl). Argo CD can deploy both Helm charts and Kustomize.
Tip for interviews: mention helm upgrade --install in pipelines and helm rollback for recovery — the practical commands interviewers like to hear.