<p>I am beginner for Kubernetes. I am trying to deploy in to Kubernetes container. I have created test.yaml file with below content.</p>

<pre><code>apiVersion: v1
kind: pod
metadata:
   name: test
   spec:
      containers:
         - name: mongo
         image: mongo
         imagePullPolicy: Always
         command: ["echo", "SUCCESS"] 
</code></pre>

<p>When I am trying to run with below command it is throwing me error.</p>

<pre><code>kubectl create -f test.yaml
</code></pre>

<p><strong>Error -:</strong> </p>

<pre><code>Error: must specify one of -f and -k


error: unknown command "–f test.yaml"
See 'kubectl create -h' for help and examples
</code></pre>

<p>Can you please help me where am I doing wrong. Thanks in advance :)</p>

vaishal shah
<p>Your template's (yaml file) indentation is wrong.</p>

<p>Try this:</p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
   name: test
spec:
  containers:
     - name: mongo
       image: mongo
       imagePullPolicy: Always
       command: ["echo", "SUCCESS"]
</code></pre>

<p><code>spec</code> was indented wrong, as well as <code>image</code>, <code>imagePullPolicy</code> and <code>command</code>. Also note the capital P on <code>Pod</code></p>
