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
Hello, @Jayesh Jose
In case of imperative command, that’s not possible.
You have to write manually if you wants your desire yaml format.