I am kubernetes newbie, and I have a basic question
my understanding from https://kubernetes.io/docs/reference/kubectl/conventions/ is , we can generate yaml templates using "kubernetes run" command
But when I tried doing same, it didn't work
Not sure if my understanding is wrong or something wrong in my command
You're just missing a few flags.
The command should be
kubectl run <podname> --image <imagename:tag> --dry-run -o yaml --generator=run-pod/v1
for example:
kubectl run helloworld --image=helloworld --dry-run -o yaml --generator=run-pod/v1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With