kubectl run
Resource ManagementRun a pod
Options & Flags
Available options for this command
--imageContainer image
--rmDelete pod after exit
-itInteractive with TTY
--restartRestart policy (Always, OnFailure, Never)
Examples
Common usage examples
Run nginx pod
kubectl run nginx --image=nginxRun temporary debug pod
kubectl run -it busybox --image=busybox --rm -- shTest service connectivity
kubectl run curl --image=curlimages/curl --rm -it -- curl http://myserviceNotes
- Useful for quick debugging
Related Commands
You might also find these useful