<p>Using kubectl command line, is it possible to define the exact pod name?</p>

<p>I have tried with</p>

<pre><code>kubectl run $pod-name --image imageX
</code></pre>

<p>However, the resulted pod name is something like <code>$pod-name-xx-yyy-nnn</code>.
So without using a yaml file, can I define the pod name using kubectl CLI?</p>

sqr
<p><code>kubectl run</code> creates a <em>Deployment</em> by default. A <em>Deployment</em> starts a <em>ReplicaSet</em> that manages the pods/replicas... and therefore has a generated <em>pod name</em>.</p>

<h2>Run pod</h2>

<p>To run a single pod you can add <code>--restart=Never</code> to the <code>kubectl run</code> command.</p>

<pre><code>kubectl run mypod --restart=Never --image=imageX
</code></pre>
