Build and apply kustomize
Build kustomize overlay and apply directly to cluster
kubectl apply -k ./overlays/prod
more kustomize
all 23 commands →
Preview output
kubectl kustomize ./overlays/prod | head -100
Set image tag
kustomize edit set image myapp=myapp:v1.2.3
Add configMapGenerator
kustomize edit add configmap my-config --from-literal=key=value
List resources in overlay
kustomize build ./overlays/prod | grep "^kind:"
Apply strategic merge patch
# Add patchesStrategicMerge in kustomization.yaml