Using kubectl command line, is it possible to define the exact pod name?
I have tried with
kubectl run $pod-name --image imageXHowever, the resulted pod name is something like $pod-name-xx-yyy-nnn. So without using a yaml file, can I define the pod name using kubectl CLI?
kubectl run creates a Deployment by default. A Deployment starts a ReplicaSet that manages the pods/replicas... and therefore has a generated pod name.
To run a single pod you can add --restart=Never to the kubectl run command.
kubectl run mypod --restart=Never --image=imageX