<p>I have successfully setup the kubectl cli on my laptop to connect to my azure cluster.
If I make, for example:</p>

<pre><code>kubectl config get-contexts
</code></pre>

<p>I get my namespaces and I can see my resources by navigating to the current namespace.
Now I need to replicate this setup on another laptop of mine and I made the following:</p>

<pre><code>az login &lt;--login to azure
az aks install-cli &lt;--install of kubectl
az aks get-credentials --resource-group myResourceGroup --name myCluster &lt;--linking kubectl to my cluster
</code></pre>

<p>Problem is that, if I make get-contexts again I only get the default namespace. And, of course, that namespace is empty as I put my deployment in another one.</p>

<p>What am I missing?</p>

Phate
<p>so I'm not sure what the actual question is. if your resources are in different namespace, you can query those namespaces like you normally would:</p>

<pre><code>kubectl get pods -n othernamespace
kubectl edit deployment xxx -n othernamespace
</code></pre>

<p>you can set the default namespace for the context like so:</p>

<pre><code>kubectl set-context xxx --namespace othernamespace
</code></pre>
