← All notes

Kustomize customizes Kubernetes manifests with generators, patches, bases and overlays

Answer: Kustomize is a tool to customize Kubernetes objects through a kustomization.yaml file, and kubectl has supported it since 1.14. To view the resources in a directory, run kubectl kustomize DIR; to apply those resources, run kubectl apply -k DIR.

Commands

kubectl kustomize ./overlays/dev
kubectl apply -k ./overlays/dev

kubectl kustomize builds a set of KRM resources from a directory containing kustomization.yaml, or from a git repository URL with a path suffix. If DIR is omitted, . is assumed.

Features

Bases and overlays

An overlay is a directory with a kustomization.yaml that refers to a base. A base has no knowledge of an overlay and can be used in multiple overlays. You can add a different namePrefix in each overlay.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Declarative Management of Kubernetes Objects Using Kustomize; kubernetes/website (GitHub), kubectl kustomize (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Declarative Management of Kubernetes Objects Using Kustomize; kubernetes/website (GitHub), kubectl kustomize (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors.

Cite this

Permanent ID: iil:note:1p7e9m47

iinventedlight. 2026. "Kustomize customizes Kubernetes manifests with generators, patches, bases and overlays." iinventedlight Library, iil:note:1p7e9m47, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-kustomize/. License: CC-BY-4.0.

@misc{iil_note_1p7e9m47,
  author = {{iinventedlight}},
  title = {{Kustomize customizes Kubernetes manifests with generators, patches, bases and overlays}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/kubernetes-kustomize/},
  note = {Permanent ID iil:note:1p7e9m47. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-kustomize.md.