2016-12-29 19 views
0

私は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 podsdescribe pod <pod-name> --namespace=kube-systemを発見しました。

ので、私は、得られたkubectl describe pod kubernetes-dashboard-3543765157-94gj9 --namespace="kube-system"走っ:https://gist.github.com/cdaringe/b972bf5a95c9f2a7cb8386ef6bf2252b

答えて

0

最終的に、私のクラスタにはノードがありませんでしたが、そのUIサービスが上陸し、実行する場所がなかったです! APIは引き続きプロキシを試みます。そのため、「エンドポイントがありません」という理由が報告されています。コンテンツを処理するホストエンドポイントはありませんでした。まだ私の迷路クラスターにノードが配置されていない理由は分かっていません。私は、労働者がkubeletをダウンロードして参加したことはないと推測しています。

+0

これを解決済みとすることができますね... – luxas

関連する問題