KUBECONFIG=config kubectl get pod -n kube-system -w

命令阐明:前提条件是机器上须要装置kubectl,config指的是k8s配置文件

curl -H "Authorization: Bearer $token" https://127.0.0.1:8080/api/v1/namespaces/default/pods

命令阐明:curl获取k8s的pod列表