Vagif Gafar:
Dear All,
I am trying to create a pod via imperative command (the idea is to run with sh interpreter, the following command and arguments: sh -c sleep 1000). However, all of the below options are failing:
kubectl run mybusy --image=busybox --restart=Never --command '/bin/sh -c sleep 1000'
kubectl run mybusy --image=busybox --restart=Never --command 'sh' -- '-c sleep 1000'
kubectl run mybusy --image=busybox --restart=Never --command 'sh' -- '-c' 'sleep' '1000' --dry-run=client -o yaml
Only this option works fine, but it is not exactly what I want
kubectl run mybusy --image=busybox --restart=Never --command sleep 1000