Syntax for --command with kubectl or in kubernetes

Cloud Climber:
Hi guys, can i use --command “sleep 1000” like this?
Because i am getting:
"exec: \"sleep 1000\": executable file not found in $PATH": unknown

KK:
Yes we can use

KK:
But the command needs to be corrected here, there should be – between the command argument and the sleep command

SHANKAR NAG MACHIRAJU:
you can use this command : kubectl run --restart=Never --image=busybox busybox-pod --command – sleep 1000

Cloud Climber:
Sorry but doesnt collaborate well with " --command – sleep 1000 --dry-run -o yaml > /etc/kubernetes/manifests/static-busybox.yaml"
image.png