kubectl apply -k
CautionApply with Kustomize
kubectl apply -k <dir>
Applies base+overlay configs; preview the rendered output with 'kubectl kustomize' before apply -k.
Examples
kubectl kustomize overlays/prod | lessReview the rendered manifests
Syntax
kubectl apply -k <dir> / kubectl kustomize <dir>
Before you run it
Wrong overlay = wrong environment.
Related commands
- kubectl applyApply manifests
- kubectl diffDiff before apply
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store