2016-05-19 26 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错误。 祝你好运!