2016-05-19 23 views

回答

0

你打一個10點的IP是唯一的羣集內路由,所以我會假設你如:捲曲,從一個網址節點。

請調試服務和報告什麼失敗:http://kubernetes.io/docs/user-guide/debugging-services/,我猜kubectl --namespace=kube-system get ep kube-ui什麼也沒有顯示。

+0

[root @ test-ops-node1 pods]#kubectl get pod --namespace = kube-system NAME READY STATUS RESTARTS AGE kubernetes-dashboard-v1.0.1-mhz6w 1/1 Running 0 8m kubernetes-dashboard-v1 .0.1-pylco 1/1正在運行0 14m – Hobbes

+0

「kubectl --namespace = kube-system獲取ep kube-ui」 服務器發生錯誤:未找到端點「kube-ui」 – Hobbes

0
dashboard-controller.yaml 
dashboard-service.yaml 

standard configure file 

。。。 
kubernetes.io/cluster-service: "true" 
    spec: 
     containers: 
     - name: kubernetes-dashboard 
     #image: gcr.io/google_containers/kube-ui:v3 
     **image: index.tenxcloud.com/google_containers/kubernetes-dashboard-amd64:v1.0.1** 
     resources: 
。。。 

後運行和測試日誌信息如

[[email protected] pods]# kubectl logs kubernetes-dashboard-v1.0.1-mhz6w --namespace=kube-system 
2016/05/20 08:54:10 Starting HTTP server on port 9090 
2016/05/20 08:54:10 Creating API server client for http://localhost:8080 
2016/05/20 08:54:10 Creating in-cluster Heapster client 
2016/05/20 09:09:56 Incoming HTTP/1.1 GET /api/v1/replicationcontrollers request from 172.17.80.0:39277 
2016/05/20 09:09:56 Getting list of all replication controllers in the cluster 
2016/05/20 09:09:56 Get http://localhost:8080/api/v1/replicationcontrollers: dial tcp [::1]:8080: getsockopt: connection refused 
2016/05/20 09:09:56 Outcoming response to 172.17.80.0:39277 with 500 status code 
1

在kubernetes的較新版本,儀表板是名爲kube-ui可能導致endpoints \"kube-ui\" not found KUBE-ui.Using端點的替代的解決方案(404) 。要解決這個問題,你可以選擇一個名爲kubernetes-dashboard。對於更多的細節新的端點,請參見:

http://kubernetes.io/docs/user-guide/ui/

總而言之,如果使用kube-ui(例如:v3),自動重定向可能不正確,並且由於資源未定位而出現404錯誤。 祝你好運!