Skip to content
masterclass Buddy

DevOps · Concept

Namespace

Kubernetes namespaces isolate groups of namespaced resources within one cluster. Names must be unique inside a namespace, but the same name can be used in other namespaces.

Last updated

Since
v1.22 for automatic namespace labeling

Syntax

kubectl get namespaces
kubectl get pods --namespace=<namespace-name>
kubectl config set-context --current --namespace=<namespace-name>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • ResourceQuota
  • NetworkPolicy
  • Role
  • RoleBinding
  • Service
  • PersistentVolumeClaim
  • kubectl config set-context

Source: Namespaces | Kubernetes. Checked 2026-11-03.