Skip to main content

Kustomize

https://kustomize.io

https://github.com/kubernetes-sigs/kustomize

https://www.eksworkshop.com/docs/introduction/kustomize/

Kustomization resource schema - https://www.schemastore.org/kustomization.json

Tutorial

It's like make, in that what it does is declared in a file, and it's like sed, in that it emits edited text.

Examples:

Use kubectl kustomize to render the final output of an overlay without applying it.

# Render the dev overlay
kubectl kustomize server/kubernetes/overlays/dev

# Render the prod overlay
kubectl kustomize server/kubernetes/overlays/prod

Save the rendered output to a file:

kubectl kustomize server/kubernetes/overlays/dev > dev-manifest.yaml