kubectl get ns

Category: Kubernetes & Containers

kubectl get ns

List cluster namespaces

Shows every namespace, the logical partitions that separate workloads, with their status. Namespaces keep teams and environments from colliding, and almost every kubectl command can target one with -n. Create new ones with kubectl create ns staging.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.