Anyone know imperative command to create pod with pod name and also with contain . . .

HITESH RATHOD:
anyone know imperative command to create pod with pod name and also with container name ?
so bascially i know how to create simple pod with imperative command : kubectl run mypod --image=nginx but if i run this by default name of the pod and container name are same , i tried this too kubectl run mypord --name=mycontainer --image=nginx but didnt work

Tej_Singh_Rana:
Hello, @HITESH RATHOD
As a quick one, you can store in the file by adding flag --dry-run=client -oyaml and do necessary changes.

Tej_Singh_Rana:
I think imperative way not possible to give a name to container.

HITESH RATHOD:
Alright thanks for responding , ill do via extracting and editing way