kubectl run web --image=nginx:1.25 --dry-run=client -o yaml
Render a pod manifest without creating
Generates the YAML manifest kubectl would apply, so you can review or edit it before anything touches the cluster. The --dry-run=client flag skips the API server entirely. Save it with -o yaml > web.yaml and apply later.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.