Sooner or later every Kubernetes team hits the same wall. The YAML that worked for one environment needs a different replica count in staging, a different image tag in production and a different namespace for each team. Copying files and editing them by hand works for a week, then the copies drift apart. Helm and Kustomize are the two tools most teams reach for to fix this. They solve the problem in very different ways, and knowing how each one thinks makes it much easier to pick the right tool, or to use both.
This guide explains how Helm and Kustomize work, compares them side by side, walks through a small hands-on example with commands from the official docs, and shows how they fit into GitOps tools like Argo CD and Flux.
The problem both tools solve
Kubernetes itself only understands plain manifests: Deployments, Services, ConfigMaps and so on. It has no built-in idea of “the same app, but for production”. Both tools sit in front of the API server and produce plain manifests for you. The difference is in how they get there.
- Helm uses templates. You write YAML with placeholders, then fill the placeholders with values at install time.
- Kustomize uses overlays. You keep plain, valid YAML as a base, then layer changes on top of it with patches and shared fields.
Helm also goes one step further: it is a package manager. It tracks what it installed in the cluster as a “release”, so it can upgrade, roll back and uninstall that whole set of objects as one unit. Kustomize does not track anything. It only builds YAML, and kubectl applies it.
How Helm works
Helm is a CNCF project that joined the foundation in June 2018 and reached Graduated status in May 2020. The Helm docs describe three big concepts:
- Chart: a package of Kubernetes resources. A chart is a directory with a required
Chart.yaml, avalues.yamlfile with default settings, and atemplates/directory. - Repository: a place where charts are stored and shared. Helm also supports OCI registries, so charts can live next to your container images.
- Release: a running instance of a chart in a cluster. Every install, upgrade or rollback creates a new revision of that release.
Chart templates are written in the Go template language, with extra helper functions from the Sprig library. A template might say replicas: {{ .Values.replicaCount }}, and the actual number comes from values.yaml, from extra values files passed with -f, or from --set on the command line. When several values files are passed, the rightmost one wins.
Charts can depend on other charts through the dependencies list in Chart.yaml, which is how large applications bundle databases, caches and other parts together.
Helm 4.0.0 was released on November 12, 2025, during KubeCon + CloudNativeCon North America. Its headline changes include support for server-side apply, a redesigned plugin system that supports WebAssembly plugins, and better resource watching based on kstatus. The Helm project stated that Helm 3 would get bug fixes until July 8, 2026 and security fixes until November 11, 2026, so teams still on Helm 3 should plan their move to Helm 4 now.
How Kustomize works
Kustomize describes itself as a way to customize raw, template-free YAML files. The project lives in the kubernetes-sigs GitHub organization, and it has been built into kubectl since Kubernetes 1.14. You can render a kustomization with kubectl kustomize and apply it with kubectl apply -k. A standalone kustomize binary also exists if you want a newer version than the one bundled with your kubectl.
The Kubernetes docs group Kustomize features into three areas:
- Generating resources:
configMapGeneratorandsecretGeneratorbuild ConfigMaps and Secrets from files or literals. Generated names get a content hash suffix, so changing the contents produces a new ConfigMap or Secret, and Kustomize updates the references to it in your workloads. - Setting cross-cutting fields: the same namespace, name prefix or suffix, labels and annotations for every resource in a directory.
- Composing and customizing: pulling resources together and changing them with patches. Patches can target resources by group, version, kind, name, namespace and selectors.
The core idea is bases and overlays. A base is a directory with a kustomization.yaml and a set of resources. An overlay is another directory whose kustomization.yaml points at one or more bases and adds its own changes. The base knows nothing about the overlays, so one base can serve dev, staging and production.
Helm vs Kustomize side by side
- Approach: Helm renders templates with values. Kustomize patches plain YAML.
- Readability: Kustomize files are valid Kubernetes YAML you can read and apply on their own. Helm templates mix YAML with template logic, which is powerful but harder to read.
- Installation: Helm is a separate CLI. Kustomize already ships inside kubectl.
- Lifecycle: Helm tracks releases, revision history and rollbacks. Kustomize has no state; you rely on kubectl and Git history.
- Distribution: Helm charts are versioned packages you can publish to a repository or OCI registry and share with the world. Kustomize bases are usually shared as directories in Git.
- Logic: Helm supports conditionals, loops and functions. Kustomize deliberately avoids logic and keeps changes declarative.
- Best fit: Helm shines for installing third party software and shipping apps to many users. Kustomize shines for managing your own apps across a few known environments.
Hands-on: one app, two approaches
Prerequisites: a running cluster (a local one is fine, see our comparison of kind, minikube, k3s and k3d), kubectl configured to reach it, and the Helm CLI installed for the Helm part.
Kustomize: a base with two overlays
This example comes from the Kubernetes documentation. First create a base with a Deployment, a Service and a kustomization file:
mkdir base
cat <<EOF > base/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-nginx
spec:
selector:
matchLabels:
run: my-nginx
replicas: 2
template:
metadata:
labels:
run: my-nginx
spec:
containers:
- name: my-nginx
image: nginx
EOF
cat <<EOF > base/service.yaml
apiVersion: v1
kind: Service
metadata:
name: my-nginx
labels:
run: my-nginx
spec:
ports:
- port: 80
protocol: TCP
selector:
run: my-nginx
EOF
cat <<EOF > base/kustomization.yaml
resources:
- deployment.yaml
- service.yaml
EOF
Now add two overlays that reuse the same base with different name prefixes:
mkdir dev
cat <<EOF > dev/kustomization.yaml
resources:
- ../base
namePrefix: dev-
EOF
mkdir prod
cat <<EOF > prod/kustomization.yaml
resources:
- ../base
namePrefix: prod-
EOF
Render an overlay to see the final YAML, then apply it:
kubectl kustomize dev/
kubectl apply -k dev/
Rendering first is a good habit. It shows exactly what will reach the API server, with nothing hidden.
Helm: install, upgrade and roll back a release
These commands come from the Helm “Using Helm” guide. Add a repository, inspect a chart’s settings, and render it locally before installing anything:
helm repo add [NAME] [URL]
helm show values bitnami/wordpress
helm template [NAME] [CHART]
Install a release with your own values file, upgrade it, check its history and roll back:
helm install happy-panda bitnami/wordpress
helm upgrade -f panda.yaml happy-panda bitnami/wordpress
helm history happy-panda
helm rollback happy-panda 1
helm uninstall happy-panda
Charts stored in an OCI registry install the same way, using an oci:// reference, for example helm install myrelease oci://localhost:5000/helm-charts/mychart --version 0.1.0.
Using Helm and Kustomize together
You do not have to pick only one. Helm supports post rendering through the --post-renderer flag on install, upgrade and template. Helm renders the chart, pipes the manifests to an executable on STDIN, and installs whatever comes back on STDOUT. The Helm docs point to Kustomize as a common post renderer, which lets you patch a third party chart without forking it. Note that Helm 4 changed how hooks are handled here: hooks are now passed to post renderers along with regular templates by default.
GitOps tools support both as well. Argo CD lists Kustomize applications and Helm charts among its supported manifest sources, and Flux has a dedicated kustomize-controller (the Kustomization API) and helm-controller (the HelmRelease API). Our guide to GitOps on Kubernetes with Argo CD and Flux covers how those tools sync these sources from Git. A common pattern is to install platform add-ons from upstream Helm charts and manage in-house apps with Kustomize overlays, all from the same Git repository.
How to choose
- Choose Helm when you install software that is already published as a chart, when you ship an app to many teams or customers who need many settings, or when you want release history and one-command rollbacks.
- Choose Kustomize when you own the manifests, have a small number of environments, and want plain YAML that anyone can read and review in a pull request.
- Use both when you consume upstream charts but need small changes they do not expose as values. Post rendering or a GitOps tool can combine them cleanly.
Whatever you choose, keep the rendered output reviewable. Running helm template or kubectl kustomize in CI and checking the result is one of the simplest ways to catch mistakes before they reach a cluster. If you are building a shared platform around these tools, our post on platform engineering with Backstage and Crossplane shows where they fit in an internal developer platform.
Key takeaways
- Helm uses templates plus values; Kustomize uses plain YAML plus overlays and patches.
- Helm is a package manager with releases, revisions and rollbacks. Kustomize only builds YAML and is built into kubectl.
- Helm 4 is the current major version; Helm 3 support ended with security fixes on November 11, 2026.
- Render before you apply:
helm templateandkubectl kustomizeshow exactly what will change. - The tools work well together through Helm post rendering and in GitOps tools like Argo CD and Flux.
Sources
Kubernetes docs: Declarative Management of Kubernetes Objects Using Kustomize, kubernetes-sigs/kustomize on GitHub, Helm docs: Using Helm, Helm docs: Charts, Helm docs: Advanced Helm Techniques (post rendering), Helm docs: Use OCI-based registries, Helm docs: helm template, Helm blog: Helm 4 Released, CNCF: Helm project page, Argo CD docs: Tools, Flux docs: Components.
