kubectl create ns staging

Category: Kubernetes & Containers

kubectl create ns staging

Create a namespace

Creates a namespace (logical partition of a cluster) named staging for isolating workloads. List namespaces with kubectl get ns and target one with -n staging on other commands. Deleting a namespace removes everything inside it, so name carefully.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.