<p>I want to debug the pod in a simple way, therefore I want to start the pod without deployment.</p>
<p>But it will automatically create a deployment</p>
<pre><code>$ kubectl run nginx --image=nginx --port=80
deployment &quot;nginx&quot; created
</code></pre>
<p>So I have to create the <code>nginx.yaml</code> file</p>
<pre><code>---
apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  containers:
    - name: nginx
      image: nginx
      ports:
        - containerPort: 80
</code></pre>
<p>And create the pod like below, then it creates pod only</p>
<pre><code>kubectl create -f nginx.yaml
pod &quot;nginx&quot; created
</code></pre>
<p>How can I specify in the command line the <code>kind:Pod</code> to avoid <code>deployment</code>?</p>
<p>// I run under minikue 0.20.0 and kubernetes 1.7.0 under Windows 7</p>

Larry Cai
<pre><code>kubectl run nginx --image=nginx --port=80 --restart=Never
</code></pre>

<blockquote>
  <p><code>--restart=Always</code>: The restart policy for this Pod.  Legal values [<code>Always</code>, <code>OnFailure</code>, <code>Never</code>].  If set to <code>Always</code>
  a deployment is created, if set to <code>OnFailure</code> a job is created, if set to <code>Never</code>, a regular pod is created. For the latter two <code>--replicas</code> must be <code>1</code>.  Default <code>Always</code> [...]</p>
</blockquote>

<p>see official document <a href="https://kubernetes.io/docs/user-guide/kubectl-conventions/#generators" rel="noreferrer">https://kubernetes.io/docs/user-guide/kubectl-conventions/#generators</a></p>
