How do you get a list of Kubernetes namespaces using kubectl?
Experience Level: Senior
Tags: Kubernetes
Answer
Run one of the following commands (they are all the same):
kubectl get ns
kubectl get namespace
kubectl get namespaces
Run one of the following commands (they are all the same):
kubectl get ns
kubectl get namespace
kubectl get namespaces