John H:
When i try to create a yaml file using the “ kubectl run web app —dry-run=client -o yaml > webapp.yaml” I am prompted for an image name. Any way around this
Mohamed Ayman:
Hii @John H,
try with --image= flag
John H:
I’ll give that a shot. I was describing the pod and using that. I figured there was an easier way, thank you
sam:
kubectl run --image=nginx webapp --dry-run=client -o yaml > webapp.yaml
John H:
The image was different
sam:
you can use any image name you want
sam:
it’ll try to get the image from docker. what image do you want to use?
John H:
Understood. My concern is to recreate the existing pod yaml as shown in the videos
John H:
I believe he does not pass the image flag
sam:
hmm, it won’t be possible for you to create without passing an image tag,
sam:
which video?
John H:
I’ll have to rewatch the video to see how it’s done
John H:
Most of the videos that have a pod recreation involved
sam:
yeah, most of them do
sam:
or if you edit an existing yaml file too, that’s another thing
John H:
True I’ll have to find it. Thank you for the help