kubectl create
SafeCreate resources
kubectl create deployment <name> --image=<img>
Imperative creation — most useful today as a YAML generator via --dry-run=client -o yaml.
Examples
kubectl create deploy web --image=nginx --dry-run=client -o yaml > web.yamlGenerate a manifest
Syntax
kubectl create <kind> <name> [options] [--dry-run=client -o yaml]
Before you run it
--dry-run creates nothing.
Related commands
- kubectl applyApply manifests
- kubectl runRun ad-hoc pods
- kubectl exposeExpose as a Service
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