title: How to start a pod in command line without deployment in kubernetes?
body: <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>