kubectl apply
CautionApply manifests
kubectl apply -f <file>
Applies YAML manifests to create/update resources.
Examples
kubectl apply -f deploy.yamlApply a definition
Syntax
kubectl apply -f <file|dir> [-n <ns>]
Before you run it
Modifies live resources; review with diff first.
Related commands
- kubectl rolloutRollout restart/undo
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store