<p>I am a student and new to minikube as well as linux. My Teacher did the same and his pod created but i am getting error. I don't know what is the problem. Should i ignore validation error?</p>
<pre><code>kubectl create -f myfirstpod.yaml
error: error validating &quot;myfirstpod.yaml&quot;: error validating data: apiVersion not set; if you choose to ignore these errors, turn validation off with --validate=false
</code></pre>
<p>cat myfirstpod.yaml</p>
<pre><code> kind: Pod
 apiversion: v1
 metadata:
   name: myfirstpod
 spec:
   containers:
 name: container1
 image: aamirpinger/helloworld:latest
 ports:
   containerPort: 80
</code></pre>
<p>I am using these versions:</p>
<ul>
<li>minikube version: v1.11.0</li>
<li>kubectl version 1.8.4</li>
<li>Kubernetes 1.18.3</li>
<li>Docker 19.03.11</li>
</ul>

<p>Seems like you have typo. It should be <code>apiVersion</code> instead of <code>apiversion</code>. Also, the indentation in the PodSpec seems incorrect.</p>
<p>You can use this:</p>
<pre class="lang-yaml prettyprint-override"><code>kind: Pod
apiVersion: v1
metadata:
  name: myfirstpod
spec:
  containers:
  - name: container1
    image: aamirpinger/helloworld:latest
    ports:
    - containerPort: 80
</code></pre>
