NAME STATUS MESSAGE ERROR
scheduler Healthy ok
controller-manager Healthy ok
etcd-1 Healthy {"health":"true"}
etcd-2 Healthy {"health":"true"}
etcd-0 Healthy {"health":"true"}
2. 查看集群状态#kubectl cluster-info
Kubernetes master is running at https://10.45.1.1:6443
metrics-server is running at https://10.45.1.1:6443/api/v1/namespaces/kube-system/services/heapster/proxy
KubeDNS is running at https://10.45.1.1:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
导出集群信息供排查
#kubectl cluster-info dump --namespace kube-system --output-directory=/path/to/cluster-state
k8s常用的排查命令1. 查看组件状态#kubectl get cs2. 查看集群状态#kubectl cluster-info3. 查看node状态#kubectl get node4. 查看pod#kubectl get pod -owide -A 查看所有命名空间的pod5. 查看svc6. 查看组件日志获取核心组件:8. 其他命令请参考1. 查看组件状态#kubectl get csNAME STATUS MESSAGE ERROR