Trying to generate a yaml file using Imperative command and trying to pass a com . . .

Jayesh Jose:
Trying to generate a yaml file using Imperative command and trying to pass a command with an argument , however argument option is not showing up in yaml file . kubectl run webapp --image=nginx --dry-run=client -o yaml --command ls -- -l

Jayesh Jose:
Was excepting the yaml file will generate something like below

Tej_Singh_Rana:
Hello, @Jayesh Jose
In case of imperative command, that’s not possible.

Tej_Singh_Rana:
You have to write manually if you wants your desire yaml format.

Jayesh Jose:
Thanks @Tej_Singh_Rana