我正在设置一个 Kubernetes 主节点。只是主节点,暂时没有工作节点。
使用本教程完成设置,没有任何问题。现在,
$kubectl get pods -o wide --all-namespaces
kube-system calico-kube-controllers-694687c474-96b7h 0/1 Pending 0 4h19m <none> <none> <none> <none>
kube-system coredns-86c58d9df4-dv847 0/1 Pending 0 4h28m <none> <none> <none> <none>
kube-system coredns-86c58d9df4-pqvxv 0/1 Pending 0 4h28m <none> <none> <none> <none>
kube-system etcd-ip-172-31-40-128 1/1 Running 0 4h28m 172.31.40.128 ip-172-31-40-128 <none> <none>
kube-system kube-apiserver-ip-172-31-40-128 1/1 Running 0 4h28m 172.31.40.128 ip-172-31-40-128 <none> <none>
kube-system kube-controller-manager-ip-172-31-40-128 1/1 Running 0 4h28m 172.31.40.128 ip-172-31-40-128 <none> <none>
kube-system kube-proxy-zvgcl 1/1 Running 0 4h28m 172.31.40.128 ip-172-31-40-128 <none> <none>
kube-system kube-scheduler-ip-172-31-40-128 1/1 Running 0 4h27m 172.31.40.128 ip-172-31-40-128 <none> <none>
kube-system kubernetes-dashboard-57df4db6b-wlv86 0/1 Pending 0 3h55m <none> <none>
当我尝试在本地浏览器中使用 http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/打开 Kubernetes 仪表板时,它无法打开仪表板我在浏览器中收到以下错误:
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "no endpoints available for service \"kubernetes-dashboard\"",
"reason": "ServiceUnavailable",
"code": 503
}
我假设由于 kubernetes-dashboard pod 处于待处理状态,因此仪表板不会打开。我如何让它为我工作?
任何帮助表示赞赏。