Add a label to all resources

Add a common label to 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 for one Deployment in kustomization.yaml

  • kustomize cfg list-setters .

    List all setters (settable fields) in the current directory

  • kubectl apply -k ./overlays/prod

    Build and apply a kustomization in one kubectl command

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

    Render the kustomize output without applying it (first 100 lines)

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

    Update the image tag in kustomization.yaml

all 23 kustomize commands