Add a patch

Register a strategic merge patch for one Deployment in kustomization.yaml

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

tool
kustomize23 commands
tags
kustomize

More kustomize commands

  • 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

  • kustomize edit add configmap my-config --from-literal=key=value

    Add a ConfigMap generator entry to kustomization.yaml

all 23 kustomize commands