Apply kustomization

Build and apply kustomization in one step via kubectl

kubectl apply -k ./overlays/prod

tool
kustomize23 commands
tags
kustomize

More kustomize commands

  • 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

  • kustomize edit add label env:production

    Inject a common label into all generated resources

all 23 kustomize commands