easykubectl

Create a new namespace to isolate resources within the cluster

command

kubectl create namespace NAMESPACE_NAME

also accepted

kubectl create namespacekubectl create nskubectl create ns NAMESPACE_NAME

Command breakdown

Part of the Kubernetes CLI (kubectl) — Namespaces category.

kubectlcreatenamespaceNAMESPACE_NAME

Test your recall — not just your reading.

Practice with interactive quiz →