Skip to content

Limits

What kustomize cannot do, stated as plainly as what it can — including the limits this lab ran into or deliberately stopped at.

It produces text. Nothing else

A build does not validate against a cluster, reserve anything, check a quota or prove the output will apply. It cannot tell you the image exists, the namespace is real, or the cluster will accept the manifest. Those answers live on the other side of chapter 10's door, with tools and dry-runs this guide names but does not run. Anyone who describes a green build as "deployed" is skipping the interesting half of the pipeline.

No logic, by design

There are no conditionals, no loops, no arithmetic, no string functions. You cannot say "three replicas, unless the environment is staging" inside one file — you say it with two overlays, which is the design working as intended, until the environment count or the variation shape outgrows it. Teams whose differences are genuinely parametric — fifty instances generated from a table — hit this ceiling hard and belong with Helm or a real generator. Kustomize's refusal to grow a programming language is its best feature and its firmest limit, and it is the same refusal.

Generated Secrets are not secret

Chapter 6's point, repeated because it is the limit with consequences: values fed to a secretGenerator are base64 in the output and plaintext in your files. Kustomize has no vault, no encryption, no access control. If that sentence describes your current repository with a real password in it, the fix is a rotation, not a commit that deletes the line — the value lives in history.

Remote bases are other people's code

A kustomization can name a base by URL, and building then fetches and executes that repository's kustomization — generators, patches, and any executable plugins included. The lab never did this: every build in the guide is over files in the repository, because a guide about auditing your inputs should not quietly fetch its own. If you use remote bases, pin them to a commit, prefer sources you control, and review them the way you would review a dependency — because that is what they are.

Labels can paint you into a corner

A transformer stamps labels into more places than new users expect — the lab's builds show the common label inside Service selectors and Deployment matchLabels as well as in ordinary label positions. Selector labels are immutable on a live Deployment: change your mind about one and the apply fails, and the remedy is recreating the workload. Kustomize is faithfully applying your instruction; the limit is that the instruction is stickier than it looks. Keep selector-bound labels few, stable and boring.

Version drift is real, if usually quiet

The standalone tool and kubectl's bundled copy are the same engine on different release trains (chapter 3: 5.8.3 beside 5.8.1, identical output on the lab's base). Features, defaults and warning text can and do differ across versions — the deprecation warning in chapter 5 exists in this version and not in older ones. A kustomization is a long-lived file; the binary that builds it should be as pinned as the images it names.

What the lab did not do

Nothing in this guide touches a cluster: no apply, no dry-run against an API server, no GitOps controller consuming the output. Those steps are described (chapters 10 and 12) from the tools' documentation, and the text says so where it matters. A build-only guide is a fair scope for a build-only tool — and the boundary is worth noticing, because it is exactly the boundary of the tool itself.