<p>I created the below ns.yaml file:</p>

<pre><code>apiVersion: v1
kind: Namespace
metadata:
Name: testns
</code></pre>

<p>I am getting the below error.</p>

<pre><code>error: error validating "ns.yaml": error validating data: ValidationError(Namespace.metadata): unknown field "Name" in io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta; if you choose to ignore these errors, turn validation off with --validate=false
</code></pre>

<p>The root cause is clear in the error logs: <code>unknown field "Name" in io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta;</code></p>

<p>This means you need to use <code>name</code> instead of <code>Name</code>.</p>

<p>For more info about YAML format of Kubernetes object Namespace metadata, run the following command :</p>

<pre><code>kubectl explain namespace.metadata
</code></pre>

<p>And you will get amazing documentation.</p>
