K8s 1.5.4。我有一个kubernetes集群,仪表板退出工作。它工作了几个星期但现在没有显示。
当我运行kubectl proxy
并导航到
http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard
我得到以下内容:
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "no endpoints available for service \"kubernetes-dashboard\"",
"reason": "ServiceUnavailable",
"code": 503
}
当我运行kubectl get pods --namespace=kube-system
时:
NAME READY STATUS RESTARTS AGE
heapster-v1.2.0-4088228293-j8gn5 2/2 Running 0 19d
kube-apiserver-96.118.29.200 1/1 Running 1 6d
kube-controller-manager-96.118.29.200 1/1 Running 29 20d
kube-dns-782804071-92kq8 4/4 Running 0 20d
kube-dns-autoscaler-2715466192-90jhm 1/1 Running 0 20d
kube-proxy-96.118.29.200 1/1 Running 22 20d
kube-proxy-96.118.29.213 1/1 Running 0 20d
kube-proxy-96.118.29.214 1/1 Running 0 20d
kube-proxy-96.118.29.217 1/1 Running 1 19d
kube-scheduler-96.118.29.200 1/1 Running 30 20d
kubernetes-dashboard-3543765157-7j40w 1/1 Running 0 20d
正在运行kubectl logs kubernetes-dashboard-3543765157-7j40w --namespace=kube-system
挂起
关于如何诊断的任何想法?
答案 0 :(得分:1)
通过运行此命令来检查此pod调度的节点:
kubectl get pods -n kube-system -o wide
接下来,ssh到该节点并检查硬盘空间是否可用:df -h
另请查看kubectl describe pod -n kube-system kubernetes-dashboard-3543765157-7j40w
最后尝试删除广告连播:kubectl delete pod -n kube-system kubernetes-dashboard-3543765157-7j40w
调度程序将自动重新创建它,您将能够检查该新pod的日志。