<p>I am a beginner and start learning Kubernetes.</p>
<p>I'm trying to create a POD with the name of myfirstpodwithlabels.yaml and write the following specification in my YAML file. But when I try to create a POD I get this error.</p>
<pre class="lang-sh prettyprint-override"><code>error: error validating &quot;myfirstpodwithlabels.yaml&quot;: error validating data: [ValidationError(Pod.spec): unknown field &quot;contianers&quot; in io.k8s.api.core.v1.PodSpec, ValidationError(Pod.spec): missing required field &quot;containers&quot; in io.k8s.api.core.v1.PodSpec]; if you choose to ignore these errors, turn validation off with --validate=false
</code></pre>
<p>My YAML file specification</p>
<pre class="lang-yaml prettyprint-override"><code>kind: Pod
apiVersion: v1
metadata:
  name: myfirstpodwithlabels
  labels:
    type: backend
    env: production
spec:
  contianers:
  - image: aamirpinger/helloworld:latest
    name: container1
    ports:
    - containerPort: 80
</code></pre>

Rukhshan Ali
<p>There is a typo in your .spec Section of the yaml.
you have written:</p>
<ul>
<li>&quot;contianers&quot;</li>
</ul>
<p>as seen in the error message when it really should be</p>
<ul>
<li>&quot;containers&quot;</li>
</ul>
<p>also for future reference: if there is an issue in your resource definitions yaml it helps if you actually post the yaml on stackoverflow otherwise helping is not an easy task.</p>
