Architecture

Helm and Kustomize: two routes to the same manifest

·Architecture·12 min read

Sooner or later, every team that runs Kubernetes ends up with the same problem. A manifest describes exactly one state, but the application it describes runs in several places: one replica and verbose logging in development, four replicas, tighter resource limits and a different hostname in production. Copying the YAML and editing it by hand works for a week or two. After a few months, the copies have drifted apart and nobody can say with confidence which differences are intentional.

Helm and Kustomize are the two tools most teams reach for at that point, and they are often presented as rivals. That framing is misleading. Both turn a shared starting point plus a handful of environment-specific settings into finished manifests, but they go about it in opposite ways, and that difference is precisely what makes each of them the right tool for a different job. The diagram below shows both routes, along with the way they are commonly combined.

Helm and Kustomize – two ways to the same manifests Helm and Kustomize Two ways to the same result: plain Kubernetes manifests for one environment HELM · TEMPLATES AND PACKAGES Chart templates/*.yaml with {{ placeholders }} values.yaml · the chart's defaults values-prod.yaml · your overrides Template engine helm install · helm upgrade helm template fills the placeholders with values Rendered manifests Deployment, Service, … plain YAML, no placeholders Cluster objects via the API server Release · revision 7 history, rollback, uninstall KUSTOMIZE · BASES AND PATCHES Base and overlay valid YAML at every stage base/ · the manifests as they are overlays/prod/ · patches for prod Transformers kustomize build kubectl apply -k lays the patches over the base Rendered manifests Deployment, Service, … plain YAML, patched Cluster objects via the API server No release object the history lives in Git COMBINED · HELM RENDERS, KUSTOMIZE ADJUSTS Third-party chart maintained upstream your values Helm renders everything the chart's values can express Kustomize patches the last few lines the values do not reach helmCharts · post-renderer Manifests rendered and patched Cluster often through Argo CD or Flux

The short version

For readers in a hurry, the argument of this article fits into three sentences. Helm is a package manager: it is at its best when software is handed from the people who wrote it to people who did not. Kustomize is a patching tool: it is at its best when a team deploys its own applications to its own environments. The two work well together when a third-party chart does almost everything that is needed, and a few targeted patches cover the rest.

The remaining sections explain why that rule of thumb holds, where it stops holding, and what has changed in both tools over the past year.

Helm: a package manager that happens to template

Helm is usually introduced as a templating engine, which undersells it. Its unit of work is the chart: a directory containing templates, a values.yaml file with defaults, and metadata such as the name, the version and any dependencies. The templates are Kubernetes manifests with placeholders written in Go template syntax:

# templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Release.Name }}
spec:
  replicas: {{ .Values.replicaCount }}
  template:
    spec:
      containers:
        - name: checkout
          image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

The placeholders are filled in from values. The chart ships with sensible defaults, and each environment overrides only what it needs to be different:

# values-prod.yaml
replicaCount: 4
image:
  tag: v2

If that were all, Helm would be one template engine among many. Three further capabilities are what make it a package manager. First, Helm packages and distributes charts: a chart carries a version, can be pushed to an OCI registry and can be pulled in by other charts as a dependency. Second, it keeps track of a release in the cluster. Every install and every upgrade is stored as a revision, so helm rollback returns to the previous one and helm uninstall removes exactly the objects that belong to the release. Third, it supports hooks, which are jobs that run before or after an install or upgrade, a database migration being the classic example.

The price is paid in the templates. A template is not valid YAML until it has been rendered, so editors, linters and reviewers are looking at text interleaved with control structures, conditionals and indentation helpers. And a chart can only be adjusted in the places its author thought to expose as a value. Charts that try to serve every possible use case tend to end up with templates in which nearly every line is a parameter.

Kustomize: patches over plain YAML

Kustomize takes the opposite approach and does away with templates altogether. The starting point is a base: ordinary, valid manifests that could be applied with kubectl apply exactly as they are. An overlay describes how one environment differs from that base. A file named kustomization.yaml ties the two together:

# overlays/prod/kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: shop-prod
resources:
  - ../../base
images:
  - name: checkout
    newTag: v2
patches:
  - path: replicas.yaml

The file replicas.yaml is a patch. It contains only the fragment of the Deployment that changes, and Kustomize merges it into the original:

# overlays/prod/replicas.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: checkout
spec:
  replicas: 4

For routine jobs, Kustomize provides transformers and generators. They set a namespace, add labels, swap image tags, or build ConfigMaps and Secrets from files. A generated object gets a suffix derived from a hash of its content, which means that a changed configuration rolls the Pods automatically.

Kustomize also comes built into kubectl: running kubectl apply -k overlays/prod renders and applies in one step, with nothing else to install. The built-in version does tend to lag somewhat behind the standalone kustomize binary.

This approach has limits of its own. Kustomize has no notion of a release, a rollback or a hook. The history lives in Git, and rolling back means reverting a commit. There is no package format with versions and dependencies either. And a patch can only change structure that is already there: loops and conditionals are left out by design.

Where the two overlap

Given how often the two are pitted against each other, it is worth noting how much they have in common.

  • Both are declarative, and both produce the same thing: ordinary Kubernetes manifests. The cluster cannot tell which tool generated what it receives.
  • Both solve the same problem, namely reusing one starting point across several environments without copying it.
  • Both run on the client side. Since Helm 3, neither needs a component of its own inside the cluster.
  • Both can run without a cluster (helm template, kustomize build), so the output can be reviewed, diffed and checked against policies in a pipeline.
  • Both are supported out of the box by the GitOps tools Argo CD and Flux.

Where they part ways

Principle. Helm parameterises: the chart author decides in advance which parts can be changed. Kustomize overlays: the user decides after the fact which parts to change. With Helm, control sits with the author of the chart. With Kustomize, it sits with the operator.

Readability. Every Kustomize file is valid YAML and can be checked with any Kubernetes tool, whereas a Helm template has to be rendered first. In fairness, Kustomize output is not visible at a glance either once several overlays and patches build on each other.

Logic. Helm has conditionals, loops and helper functions, so a chart can create or omit an Ingress depending on a value. Kustomize can add, change and remove objects, but it cannot compute anything.

Lifecycle. Helm manages a release with revisions, rollbacks, hooks and a clean uninstall. Kustomize produces manifests and leaves the lifecycle to whatever applies them. In a GitOps setup, that is the controller.

Distribution. A Helm chart is a versioned package with dependencies, built to be handed to third parties. A Kustomize base is a directory, referenced by path or Git URL.

Learning curve. Anyone who can read a manifest can pick up Kustomize in an afternoon. Helm additionally requires the template language and an understanding of how releases are managed.

Choosing between them

The choice has less to do with taste than with one question: who writes the manifests, and who consumes them?

Helm is the better fit when software changes hands. A vendor, an open source project or a platform team ships an application to users who do not know its internals. Those users need a documented interface, and the values are that interface. For third-party software such as cert-manager, an ingress controller or the Prometheus stack, the vendor's chart is usually the sensible route, because the vendor maintains it and tests it with every release. Helm is also the better fit when the installation itself involves steps that map onto hooks, or when the variants differ in structure and not just in a few settings.

Kustomize is the better fit for a team's own applications in its own environments. A team that writes and runs its own services does not need an interface for strangers. It needs readable manifests and small, traceable differences between development, staging and production. That is exactly what overlays are for: a review shows in a few lines how production differs from the base. Combined with GitOps, the result is a repository in which the desired state of each environment can be read directly.

Tip

A warning sign for in-house applications is a chart that is used by a single team for a single application and still has a placeholder on every line. At that point, values.yaml has simply replaced the manifest with a private, undocumented language of its own. Kustomize is usually the simpler answer.

Better together: Helm renders, Kustomize patches

In many projects the question is not "Helm or Kustomize" at all, because the two complement each other at one clearly defined point: Helm renders, and Kustomize adjusts the result.

The typical case is a third-party chart that almost fits. It lacks an annotation that company policy requires, a toleration for a particular node pool or a NetworkPolicy, and the chart offers no value for it. Without Kustomize, neither remaining option is attractive: waiting for the vendor to accept a change, or forking the chart and carrying the fork forward with every update. With Kustomize, the chart stays untouched and a patch adds the missing lines.

Kustomize can render a chart itself for this purpose. The helmCharts field calls Helm and treats the output like any other resource:

# kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: shop-prod
helmCharts:
  - name: checkout
    repo: https://charts.example.com
    version: 2.3.0
    releaseName: checkout
    valuesFile: values-prod.yaml
patches:
  - path: add-tolerations.yaml
# Renders the chart, then applies the patch
kustomize build --enable-helm overlays/prod

Note

Used this way, Helm acts purely as a template engine. No release is created in the cluster, helm list shows nothing, and there is no helm rollback. Argo CD always handles Helm charts like this and maps hooks onto mechanisms of its own. Flux, by contrast, keeps a real release through its HelmRelease object and applies Kustomize patches as a post-renderer.

The reverse route is called post-rendering: Helm installs the chart as a release and, before applying anything, pipes the rendered manifests through another program, such as Kustomize. Release, rollback and hooks all remain intact.

A third pattern is organisational and needs no technical coupling at all: Helm for everything that comes from someone else, Kustomize for everything the team writes itself. This split is very common in GitOps repositories and a good default for most teams.

The combination does come at a cost. When something goes wrong, working out why a field has a particular value now means reading two stages. It pays off for a small number of targeted patches. Once the patches outgrow the values, a chart of one's own, or a contribution to the vendor's chart, is the better answer.

What changed recently

Both tools are mature, which is exactly why the changes of the past twelve months deserve attention.

Helm 4 is the current major version, and Helm 3 is on its way out. Helm 4 was released in November 2025, six years after Helm 3, and the current release line is 4.3. Helm 3 received its final feature release on 9 September 2026, which also marked the end of bug fixes. Security patches continue until 10 February 2027. Teams that still call Helm 3 from their pipelines should plan the move now. Charts in the existing format (apiVersion: v2) keep working unchanged. The changes that matter most concern behaviour and the command line:

  • Server-side apply is the default for new releases. Helm leaves the merge to the API server, which records who owns each field. Conflicts with other actors, such as an autoscaler that manages the replica count, become visible as a result. Releases created with Helm 3 keep their previous apply method on upgrade.
  • Two flags have new names. --atomic is now --rollback-on-failure, and --force is now --force-replace. The old names still work and print a deprecation warning.
  • Charts can be pinned by digest. Helm then installs a chart from an OCI registry only if its content matches the given digest exactly.
  • Post-renderers are plugins. The --post-renderer flag expects the name of an installed plugin and no longer accepts the path to an executable. Anyone who combines Kustomize with Helm this way has to wrap the script in a plugin. The plugin system was rebuilt for the purpose and optionally supports a WebAssembly runtime.
  • Status reporting is more precise. Helm uses the kstatus library to judge whether the objects of a release have reached their target state.

In a pipeline, the migration looks like this:

# Helm 3: roll back automatically if the upgrade fails
helm upgrade --install checkout ./chart --atomic

# Helm 4: same intent, new flag name
helm upgrade --install checkout ./chart --rollback-on-failure

# Helm 4: pin a chart by its digest
helm install checkout \
  oci://registry.example.com/charts/checkout@sha256:<digest>

Kustomize 5.8 closes gaps in its Helm integration. Kustomize moves in smaller steps, but releases 5.8.0 to 5.8.3 matter for anyone who combines it with Helm:

  • A namespace set in kustomization.yaml is now passed on to the entries under helmCharts. Previously the namespace had to be repeated for every chart, or the chart was rendered for the default namespace. In the example from the previous section, the single line namespace: shop-prod is therefore enough.
  • As of 5.8.1, helmCharts works with both Helm 3 and Helm 4.
  • Replacements, the successor to the deprecated vars, accept regular expressions in their selectors and can replace values inside embedded YAML or JSON, for example in a ConfigMap.

Teams that maintain older overlays should also retire the fields deprecated with version 5: patches replaces patchesStrategicMerge and patchesJson6902, labels replaces commonLabels, and resources replaces bases. The kustomize edit fix command takes care of much of that migration.

Other tools worth knowing

Helm and Kustomize cover most of what teams do in practice. A few alternatives and companions are common enough that it helps to know where they fit.

  • Helmfile does not replace Helm. It describes declaratively which releases are installed with which values in which environment, and it is popular where many charts are managed without a GitOps controller.
  • Jsonnet with Tanka, and CUE with Timoni, replace text templates with a configuration language that has types, functions and validation. They are more powerful than either tool discussed here and come with a learning curve to match. KCL follows a similar idea.
  • ytt, from the Carvel project, offers templates and overlays that understand the structure of YAML and so avoids the indentation pitfalls of text templates.
  • cdk8s and Pulumi generate manifests from general-purpose languages such as TypeScript, Python or Go. They suit teams that want to describe infrastructure and application in the same language.
  • Operators are not an alternative in the strict sense, but they move the problem elsewhere: an operator exposes a resource of its own and creates the Kubernetes objects inside the cluster. For databases and other stateful systems, that is often a better route than a sprawling chart.

The decision in a nutshell

Helm and Kustomize answer the same question in two ways. Helm parameterises templates, packages them as a chart and manages the installation as a release. Kustomize lays patches over valid manifests and leaves the lifecycle to whatever applies them.

That leads to a simple rule of thumb. Helm is the right choice for software that is handed on to others, and therefore also for software obtained from others. Kustomize is the right choice for a team's own applications in its own environments. Combining the two pays off where a third-party chart almost fits and a few targeted patches do the rest.

A team that can tell these three cases apart does not need to standardise on one tool. It picks, application by application, the tool that matches where the manifests come from.

Comments

Write a comment

Loading the form …


Back to the index