Apply kustomization
Build and apply kustomization in one step via kubectl
kubectl apply -k ./overlays/prod
More kustomize commands
-
kubectl diff -k ./overlays/prodShow what changes before applying
-
kustomize edit add resource ./deployment.yamlAppend a resource file to kustomization.yaml
-
kustomize edit set image myapp=registry/myapp:v2.0.0Update image tag in kustomization.yaml
-
kustomize edit set namespace productionOverride namespace for all resources in the overlay
-
kustomize edit add label env:productionInject a common label into all generated resources