kubectl get namespaces
EKS
kubectl get namespaces NAME STATUS AGE default Active 44h kube-node-lease Active 44h kube-public Active 44h kube-system Active 44h
Minikube
kubectl get namespaces NAME STATUS AGE default Active 3d21h kube-node-lease Active 3d21h kube-public Active 3d21h kube-system Active 3d21h kubernetes-dashboard Active 3d21h
kubectl get namespaces NAME STATUS AGE default Active 24h kube-node-lease Active 24h kube-public Active 24h kube-system Active 24h
kubectl delete namespaces --all
See also
kubectl get
: [all
|componentstatus | pods | apiservices | events
|event
|nodes
|replicaset
|services
|svc
|namespaces
|hpa
|secret | deployments | serviceaccounts | endpoints | daemonset | networkpolicy
],kubectl get -h
- Kubernetes namespaces:
kubectl get namespaces
,kube-system namespace
,--namespace
Advertising: