1. 查看所有namespace
kubectl get namespaces
2. 查看指定namespace下的所有pods
# 获取 kube-system命名空间下所有pods信息
kubectl get pods -n kube-system
3. 默认namespace是default
https://www.jianshu.com/p/ba469b699fcc
2023-12-04 13:54:13
kubectl get namespaces
# 获取 kube-system命名空间下所有pods信息
kubectl get pods -n kube-system
https://www.jianshu.com/p/ba469b699fcc