Writing criteria for this guide
Every "for Mere Mortals" guide is written to the same nine-point standard, so a reader who trusts one can trust the rest. Here it is, with the verification notes for this particular guide below.
- Fix it first. Reader outcomes lead, not action items: each chapter opens by naming the outcome it delivers, shows a check the reader can run to confirm they got it, and a reasonable reader finishes able to state what was done, what it means, and what to try next.
- Plain language. Short sentences, everyday vocabulary, technical terms defined on first use. No slang, and no idioms that only make sense in one country — the reader may be translating as they go.
- No dead ends. A guide never tells the reader to do something it cannot show them how to verify. Every claim a reader relies on — an install, a command, an output — is something this guide demonstrates or clearly labels documented-only below.
- Live-verified where it matters. Procedures are run for real in the guide's lab wherever the build machine allows it, and the transcripts kept in the repository are the evidence. What could not be run is listed honestly below, never presented as if it had been.
- General audiences. Nothing in this guide — examples, fixtures, names, addresses — is modelled on any particular reader or author's real life, network, or organisations. The lab's traffic is the lab talking to itself.
- Standalone. A reader needs this guide, its lab, and nothing else. Where another guide would genuinely help, it is pointed to once, by name, and the chapter still completes without it.
- Honest about limits. Chapter 13 names what the tool cannot do: it renders text and nothing more — no validation against a live cluster, no proof an image exists or an apply will succeed; no conditionals, loops or arithmetic, by design; generated Secrets that are encoded, not encrypted; remote bases as other people's code, fetched and trusted; and labels stamped into selectors, where they cannot later be changed.
- The ethics rule is in the text, early. Chapter 1 and the README state the rules plainly — your configuration, your clusters, and a generated Secret is encoded, not encrypted: never commit a real value — before any procedure depends on them, and later chapters point back to them where the tooling would make crossing the line easy.
- Builds clean. The site builds with MkDocs in strict mode with no warnings, and a fresh reader following the chapters in order reaches the stated outcome of each.
Verification notes for this guide
The build machine is a 2-CPU, 7.7 GB Ubuntu 24.04 sandbox.
Kustomize v5.8.3 was installed as the official standalone
binary from the project's GitHub releases, its SHA-256 matched
against the release's published checksums before it ran, and
exercised entirely locally — a build reads files and prints
text, so this guide is verified end to end, with no cluster
involved at any point. kubectl v1.37.2 was fetched
alongside it purely to compare the bundled copy. All
transcripts live in kustomize-lab/transcripts/; the lab's
application lives in kustomize-lab/app/.
Run for real, with transcripts as evidence:
- Install and version of the standalone binary, its checksum
verified against the project's
checksums.txt, and kubectl's bundled kustomize reported beside it — v5.8.1 inside kubectl v1.37.2, one minor behind the standalone (t00). - The base build: two written resources gathered, a ConfigMap and a Secret generated, hash suffixes added, and the Deployment's references rewritten to the suffixed names (t01, t02).
- Both overlays built and diffed against the base build: staging's namePrefix, commonLabels, commonAnnotations, image tag change and replica count; production's prefix, labels, annotations and tag — every diff hunk traced to its line in an overlay file (t03, t04, t05).
- Generators closely: the generated names across all three
builds, showing the ConfigMap hash changing in production
(where a literal changed under
behavior: merge) and the Secret hash holding still; the Secret's base64 value decoded back to its literal on the page (t06). - Both patch kinds, each proven by its diff: the strategic merge patch raising production's replicas and memory limits, and the JSON 6902 patch appending an environment variable in staging (t04, t03, t05).
- A replacement copying the ConfigMap's final
greetingvalue into the Deployment's environment — the base'sPLACEHOLDER, staging's unchanged placeholder, and production's copied sentence all shown in their builds (t02, t03, t04). kustomize editrun for real on copies of the staging overlay: set image, set replicas, set nameprefix, add label, each landing in the file, the edited copy built; andkustomize edit fixconvertingcommonLabelsto thelabels:field, after which the deprecation warning no longer prints (t07). The copies were deleted afterwards.- The failure modes readers actually hit, with real messages: a strategic merge patch whose target name is mistyped (exit 1), and a kustomization listing a resource file that does not exist (exit 1) (t08, t09).
- kubectl's bundled build diffed against the standalone's on the lab's base: byte-identical output (t10).
Documented only — described from the project's documentation, not run, and the text does not claim otherwise:
- Applying build output to a cluster in any form (
kubectl apply -f,kubectl apply -k, a GitOps controller). The lab has no cluster; applying is out of this guide's scope and is stated as such in chapters 1, 10 and 13. - Remote bases fetched by URL, and executable plugins. The lab builds only over files in its own repository, and chapter 13 states the trust discipline remote bases demand.
- The
namespace:transformer and the generators'envs:source: named in chapters 2 and 6, not exercised; the lab's transformers and generator sources cover the rest. kustomize create: described in chapter 9, not run — the lab's kustomizations were written by hand on purpose.- The comparison tools in chapter 12 (Helm, the GitOps controllers, the schema validators, the secret managers) are characterised, not benchmarked.
Fixtures are this guide's own and deliberately generic: a
small invented web service (webhello), a settings file with
a colour in it, an annotation pointing at a team that does
not exist, and one invented token, base-token-1234, chosen
so chapter 6 could decode it in public. No example is modelled
on any real person, network, service or organisation, and
nothing was applied anywhere — the lab only ever printed YAML.