<p>I am trying to figure out how to list all namespaces in a cluster:
<a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/" rel="noreferrer">https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/</a></p>

<p>something like:</p>

<pre><code>kubectl describe cluster --namepaces -o json
</code></pre>

<p>anyone know how to list all the namespaces in a K8S/EKS cluster?</p>

<pre><code>$ kubectl get ns
$ kubectl describe ns
</code></pre>
<p>Also, you can use <a href="https://github.com/ahmetb/kubectx/blob/master/kubens" rel="nofollow noreferrer">kubens</a> to list and switch namespaces (on your local <a href="https://ahmet.im/blog/mastering-kubeconfig/" rel="nofollow noreferrer">KUBECONFIG</a>)</p>
<pre><code> $ kubens
</code></pre>
