Add label to all resources

Inject a common label into all generated resources

kustomize edit add label env:production

tool
kustomize23 commands
tags
kustomize

More kustomize commands

  • kustomize edit add patch --path patch.yaml --kind Deployment --name <name>

    Register a strategic merge patch in kustomization.yaml

  • kustomize cfg list-setters .

    List all settable fields in the kustomization

  • kubectl apply -k ./overlays/prod

    Build kustomize overlay and apply directly to cluster

  • kubectl kustomize ./overlays/prod | head -100

    Render kustomize output without applying

  • kustomize edit set image myapp=myapp:v1.2.3

    Update image tag in kustomization.yaml

all 23 kustomize commands