我已經在2個minion節點上安裝了Docker v17.06-ce,另外還有一個主節點和Kubernetes以及Kubeadm v1.7.0。然後,我用kubectl create -f https://git.io/kube-dashboard
部署了Web UI(Dashboard),並使用kubectl edit service kubernetes-dashboard -n kube-system
將類型更改爲NodePort。Kubernetes Web UI(儀表板)不顯示圖形
我可以訪問它,但缺少CPU /內存使用量圖。所以我按照Kuberenets Web UI (Dashboard) missing graphs的說明來部署heapster和influxdb,但是我仍然看不到石墨...
怎麼回事?
UPDATE: 檢查日誌kubectl logs heapster-2994581613-m28hh --namespace=kube-system
我已經多次發現這些錯誤:
E0717 09:14:05.000881 7 kubelet.go:271] No nodes received from APIserver.
E0717 09:14:05.947260 7 reflector.go:203] k8s.io/heapster/metrics/processors/node_autoscaling_enricher.go:100: Failed to list *api.Node: the server does not allow access to the requested resource (get nodes)
E0717 09:14:05.959150 7 reflector.go:203] k8s.io/heapster/metrics/heapster.go:319: Failed to list *api.Pod: the server does not allow access to the requested resource (get pods)
E0717 09:14:05.959254 7 reflector.go:203] k8s.io/heapster/metrics/heapster.go:327: Failed to list *api.Node: the server does not allow access to the requested resource (get nodes)
E0717 09:14:05.959888 7 reflector.go:203] k8s.io/heapster/metrics/sources/kubelet/kubelet.go:342: Failed to list *api.Node: the server does not allow access to the requested resource (get nodes)
E0717 09:14:05.959995 7 reflector.go:203] k8s.io/heapster/metrics/processors/namespace_based_enricher.go:84: Failed to list *api.Namespace: the server does not allow access to the requested resource (get namespaces)
E0717 09:14:06.957399 7 reflector.go:203] k8s.io/heapster/metrics/processors/node_autoscaling_enricher.go:100: Failed to list *api.Node: the server does not allow access to the requested resource (get nodes)
E0717 09:14:06.965155 7 reflector.go:203] k8s.io/heapster/metrics/sources/kubelet/kubelet.go:342: Failed to list *api.Node: the server does not allow access to the requested resource (get nodes)
E0717 09:14:06.965166 7 reflector.go:203] k8s.io/heapster/metrics/heapster.go:327: Failed to list *api.Node: the server does not allow access to the requested resource (get nodes)
E0717 09:14:06.966403 7 reflector.go:203] k8s.io/heapster/metrics/heapster.go:319: Failed to list *api.Pod: the server does not allow access to the requested resource (get pods)
E0717 09:14:06.966964 7 reflector.go:203] k8s.io/heapster/metrics/processors/namespace_based_enricher.go:84: Failed to list *api.Namespace: the server does not allow access to the requested resource (get namespaces)
任何想法?
或者你也可以使用helm來安裝heapster。 – sfgroups
我試過了,但圖表仍然丟失。據我猜測,我還需要一個influxdb服務。這是我說我已經完成以下鏈接信息https://stackoverflow.com/questions/41832273/kuberenets-web-ui-dashboard-missing-graphs沒有成功...任何想法? – dpatino
你的日誌消息表示缺少訪問權限,請嘗試創建heapster rbac,並在帖子中添加評論。 – sfgroups