Anil:
just curious to know here if both are same thing; one is with --command and other one is without --command: > kubectl run busybox --image=busybox --restart=Never -o yaml --dry-run=client --command – /bin/sh -c ‘echo hello;sleep 3600’ > pod.yaml & kubectl run busybox --image=busybox --restart=Never -o yaml --dry-run=client – /bin/sh -c ‘echo hello;sleep 3600’ > pod.yaml so --command is optional here I believe
Tej_Singh_Rana:
Hello, @Anil
Yeah, there is no difference as per my understanding. To get a better view don’t redirect to a YAML file.
Anil:
Thank you Tej