How to list all namespaces in a cluster?
Additionally, (to the other answer), this is a short way:
$ kubectl get ns$ kubectl describe ns
Also, you can use kubens to list and switch namespaces (on your local KUBECONFIG)
$ kubens
Namespaces are an object like any other, so kubectl get namespaces
will list them. kubectl describe namespaces
will print full details.