Create resources imperatively
medium risk
Creates deployments, secrets, namespaces etc.
| Flag | Meaning |
|---|---|
--dry-run=client --dry-run=client | Simulate |
-o yaml | Print the manifest |
kubectl create deploy web --image=nginx --dry-run=client -o yamlGenerate YAML · explain & risk-check →Reference text is hand-written and may be incomplete — check man kubectl for your version. Test destructive commands on a non-production system first.