1. 查看所有namespace

kubectl get namespaces

2. 查看指定namespace下的所有pods

# 获取 kube-system命名空间下所有pods信息  
kubectl get pods -n kube-system