Skip to content

List down all namespaces using kubectl

To get the list of all namespaces use the following command:

kubectl get namespaces


$ kubectl get namespaces
NAME              STATUS   AGE
airflow-dev       Active   17d
cert-manager      Active   15d
default           Active   57d
hivemq            Active   7d19h
ingress-nginx     Active   21h
kube-node-lease   Active   57d
kube-public       Active   57d
kube-system       Active   57d
mongodb           Active   8d
mysql             Active   9d

See also  Get details list of pods running on a particular node using kubectl

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.