<p>I'm trying to install my kubernetes deployment by helm, but after passing <code>helm upgrade</code> with specified namespace, helm is installing it to the default <strong>kube-system</strong> namespace.</p>

<p>My version of helm is:</p>

<pre><code>Client: &amp;version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
Server: &amp;version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
</code></pre>

<p>The command:</p>

<pre><code>helm upgrade application-catalog . -f /tmp/values-nonprod.eyaml.dec.yaml --install --set deployment.version=0.3.64 --namespace playground --wait --timeout 120 --debug

</code></pre>

<p>The error what I got:</p>

<pre><code>Error: pods is forbidden: User "guest" cannot list pods in the namespace "kube-system"
</code></pre>

rusna
<p>First of all, to install a chart you have to use <code>helm install</code> not <code>helm upgrade</code>.</p>

<p>In your case when you can't use helm do deploy app, you could use template feature of helm:</p>

<pre><code>helm template application-catalog -f /tmp/values-nonprod.eyaml.dec.yaml --set deployment.version=0.3.64 | kubectl -n playground apply -f -
</code></pre>
