Set the namespace

Set one namespace for all resources in the overlay

kustomize edit set namespace production

tool
kustomize23 commands
tags
kustomize

More kustomize commands

  • kustomize edit add label env:production

    Add a common label to all generated resources

  • 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)

all 23 kustomize commands