Skip to content

The Neighbours

Kustomize sits in a crowded street. These are the tools you will meet beside it, characterised — what each is for, and where its border with kustomize runs — not benchmarked against it. The lab ran none of them; this chapter is from their documentation and the shape of the work, and says so.

kubectl's built-in copy

The nearest neighbour lives in the same house. kubectl kustomize is this same engine, bundled (chapter 3 measured the version gap and found identical output on the lab's base). kubectl apply -k goes one door further and applies the build. If your needs are small and your kubectl current, the built-in may be all you install; the standalone earns its place through version pinning and features that have not yet ridden a kubectl release.

Helm

The other big answer to "same app, many places". Helm packages an application as a chart: templates with {{ }} placeholders plus a values file per environment, and adds release management — install, upgrade, roll back — against a cluster. Choose Helm when you are distributing software to people who will configure it in ways you cannot foresee, or when the release machinery is the point. Choose kustomize when the application is yours, the differences are small and structural, and keeping the base as plain YAML matters more than parameterising everything. The two also compose: charts are commonly rendered and then patched with kustomize, which tells you the border is a membrane, not a wall. GitOps for Mere Mortals and the series' Kubernetes guide live on this street too.

GitOps controllers — Argo CD and Flux

Not rivals but customers. Both watch a git repository, render what it holds — with kustomize when the repository is bases and overlays — and apply the result to a cluster, continuously. If chapter 10's "build, diff, then apply" is a habit you perform by hand, a controller is that habit automated and audited. Argo CD for Mere Mortals, in this series, covers one of them end to end.

Plain kubectl apply, and envsubst

For one environment and three files, a folder of manifests and kubectl apply -f needs no customisation layer at all — the honest tool for the job is none. Between that and kustomize sits the old standby of generating files with shell substitution (envsubst, sed in a Makefile): fine for a name and a tag, brittle past that, because the substitution knows nothing of YAML's structure — the failure mode patches exist to avoid. Kustomize earns its keep where structure matters.

Validators — kubeconform and friends

A build proves your overlays are consistent; it does not prove the output is valid Kubernetes. Schema validators (kubeconform is the common one) check rendered YAML against the API schemas offline, and fit naturally after the build in the pipeline of chapter 10. They are neighbours in the workflow, not in the problem: kustomize makes the output, the validator grades it.

Secret managers

Chapter 6's rule created a vacancy — real values must come from somewhere built for them — and a category fills it: external secret stores and their Kubernetes bridges (cloud secret managers, Vault, the External Secrets operator that syncs them into the cluster). Kustomize's part in that world is the placeholder and the shape, as the lab showed. The series' age guide covers the file-encryption end of the same instinct: keep the value out of the repository, let the structure travel.