Kubernetes configuration customization with Kustomize: base and overlay layout, strategic and JSON patches, configMapGenerator and secretGenerator, images, components, replacements, and remote bases. Use when authoring kustomization.yaml, debugging kubectl kustomize or kubectl apply -k, layering environments, GitOps manifests, or when the user mentions Kustomize, kustomization.yaml, overlay, patch, or kubectl -k.
Template-free customization of Kubernetes manifests. Prefer plain YAML, small patches, and explicit composition over copying entire files per environment.
Keep the base environment-agnostic; put environment differences in overlays.
myapp/
base/
kustomization.yaml
deployment.yaml
service.yaml
overlays/
dev/
kustomization.yaml
patches/
staging/
kustomization.yaml
prod/
kustomization.yaml
patches/
apiVersion: kustomize.config.k8s.io/v1beta1