Kubernetes Web UI(仪表板)不显示graphics

我已经在2个minion节点上安装了Docker v17.06-ce,另外还有一个主节点,Kubernetes和Kubeadm v1.7.0。 然后,我使用kubectl create -f https://git.io/kube-dashboard并使用kubectl edit service kubernetes-dashboard -n kube-system将types更改为NodePortkubectl create -f https://git.io/kube-dashboard部署了Web UI(Dashboard)。

我可以访问它,但缺lessCPU /内存使用情况图。 所以我遵循Kuberenets Web UI(仪表板)缺失图表的指示来部署heapster和influxdb,但是我仍然看不到graps …

怎么了?

更新:检查日志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) 

任何想法?

你需要安装heapster pod。 尝试安装这个并检查。

安装heapster rbac也。

 kubectl create -f https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/rbac/heapster-rbac.yaml kubectl create -f https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/heapster.yaml