Skip to content

List down all namespaces using kubectl

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

kubectl get namespaces
Advertisements

Example

$ 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

Leave a Reply

Your email address will not be published. Required fields are marked *

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