<p>Is there a way to create a namespace with one label using  <code>kubectl</code>?</p>
<p>e.g.</p>
<pre><code>kubectl create ns &lt;newnamespace&gt; label=appid:foo12
</code></pre>
<p>as opposed to using <code>kubectl apply -f &lt;somefile&gt;</code></p>

<p>This may help you:</p>
<pre><code>kubectl create namespace namespace_name
kubectl label namespaces namespace_name labelname=value --overwrite=true
</code></pre>
