<p>I want to create multiple namespaces from the Kubernetes CLI (<code>kubectl</code>) without any YAML manifests:</p>
<pre class="lang-sh prettyprint-override"><code>kubectl create namespace app1,app2,app3
</code></pre>
<p>Can this be done?</p>

P Ekambaram
<p><code>kubectl</code> expects exactly one namespace:</p>

<pre><code>➜  / kubectl create ns
error: exactly one NAME is required, got 0
</code></pre>

<p>depending on your shell you could pack it into a loop. here's an example for bash and zsh:</p>

<pre><code>➜  / foreach ns (ns1 ns2 ns3); kubectl create ns $ns; end
</code></pre>
