私はkubernetesを初めて利用しています。私はちょうどこのガイドに続き、浮浪者を持っている/ kubernetesクラスタ:https://coreos.com/kubernetes/docs/latest/kubernetes-on-vagrant.htmlkubernetesダッシュボードは利用できません投稿後クラスタ展開
私はUIを表示して興味があったので、私はここに指示に従っ:http://kubernetes.io/docs/user-guide/ui/#deploying-the-dashboard-ui
$ kubectl proxy
Starting to serve on 127.0.0.1:8001
上記IPに閲覧時:PORTを、 <h3>Unauthorized</h3>
が配信されます。だから、私は、URIに/ui
をサフィックス、そして我々が得る:
// 127.0.0.1:8001/ui redirected to 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 cluster-info
Kubernetes master is running at https://172.17.4.101:443
Heapster is running at https://172.17.4.101:443/api/v1/proxy/namespaces/kube-system/services/heapster
KubeDNS is running at https://172.17.4.101:443/api/v1/proxy/namespaces/kube-system/services/kube-dns
kubernetes-dashboard is running at https://172.17.4.101:443/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard
$ kubectl get services
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes 10.3.0.1 <none> 443/TCP 36m
私は別のSOスレッド、Kubernetes dashboard keeps pending with message: no endpoints available for service "kubernetes-dashboard"を見て、get pods
とdescribe pod <pod-name> --namespace=kube-system
を発見しました。
ので、私は、得られたkubectl describe pod kubernetes-dashboard-3543765157-94gj9 --namespace="kube-system"
走っ:https://gist.github.com/cdaringe/b972bf5a95c9f2a7cb8386ef6bf2252b
これを解決済みとすることができますね... – luxas