Build kustomization

Render all manifests for an overlay to stdout

kustomize build ./overlays/prod

tool
kustomize23 commands
tags
kustomize

More kustomize commands

  • kubectl apply -k ./overlays/prod

    Build and apply kustomization in one step via kubectl

  • kubectl diff -k ./overlays/prod

    Show what changes before applying

  • kustomize edit add resource ./deployment.yaml

    Append a resource file to kustomization.yaml

  • kustomize edit set image myapp=registry/myapp:v2.0.0

    Update image tag in kustomization.yaml

  • kustomize edit set namespace production

    Override namespace for all resources in the overlay

all 23 kustomize commands