<p>I'm a Kubernetes newbie trying to follow along with the Udacity tutorial class linked on the Kubernetes website.</p>

<p>I execute</p>

<pre><code>kubectl create -f pods/secure-monolith.yaml
</code></pre>

<p>That is referencing this official yaml file: <a href="https://github.com/udacity/ud615/blob/master/kubernetes/pods/secure-monolith.yaml" rel="nofollow noreferrer">https://github.com/udacity/ud615/blob/master/kubernetes/pods/secure-monolith.yaml</a></p>

<p>I get this error:</p>

<pre><code>error: error validating "pods/secure-monolith.yaml": error validating data: unknown object type schema.GroupVersionKind{Group:"", Version:"v1", Kind:"Pod"}; if you choose to ignore these errors, turn validation off with --validate=false
</code></pre>

<p>FYI, the official lesson link is here: <a href="https://classroom.udacity.com/courses/ud615/lessons/7824962412/concepts/81991020770923" rel="nofollow noreferrer">https://classroom.udacity.com/courses/ud615/lessons/7824962412/concepts/81991020770923</a></p>

<p>My first guess is that the provided yaml is out of date and incompatible with the current Kubernetes. Is this right? How can I fix/update?</p>

<p>I ran into the exact same problem but with a much simpler example.</p>

<p>Here's my yaml:</p>

<p><code>apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  containers:
  - image: nginx
    ports:
    - containerPort: 80
</code></p>

<p>The command <code>kubectl create -f pod-nginx.yaml</code> returns:</p>

<p><code>error: error validating "pod-nginx.yaml": error validating data: unknown object type schema.GroupVersionKind{Group:"", Version:"v1", Kind:"Pod"}; if you choose to ignore these errors, turn validation off with --validate=false</code></p>

<p>As the error says, I am able to override it but I am still at a loss as to the cause of the original issue.</p>

<p>Local versions:</p>

<ul>
<li><p><code>Ubuntu 16.04</code></p></li>
<li><p><code>minikube version: v0.22.2</code></p></li>
<li><p><code>kubectl version: 1.8</code></p></li>
</ul>

<p>Thanks in advance!</p>
