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.
SubscribeRelated
ResourceQuotaNetworkPolicyRoleRoleBindingServicePersistentVolumeClaimkubectl config set-context