Skip to content

Namespaces & Resource Isolation

Namespaces provide a mechanism for isolating groups of resources within a single Kubernetes cluster.


  • default: The fallback namespace for objects created without an explicit namespace.
  • kube-system: Houses internal control plane and cluster add-on workloads (CoreDNS, kube-proxy, CNI).
  • kube-public: Readable by all users; stores public cluster information such as cluster CA certificates.
  • kube-node-lease: Holds heartbeat lease objects for each node to determine cluster health.

Terminal window
# Create a namespace declaratively or imperatively
kubectl create namespace production
# List all namespaces
kubectl get namespaces
# Set default namespace for current kubectl context
kubectl config set-context --current --namespace=production