Docker Kubernetes Web UI(仪表板)不';不显示图形
我已经在2个minion节点上安装了Docker v17.06-ce,外加一个主节点和Kubeadm v1.7.0版的Kubernetes。然后,我使用Docker Kubernetes Web UI(仪表板)不';不显示图形,docker,kubernetes,dashboard,Docker,Kubernetes,Dashboard,我已经在2个minion节点上安装了Docker v17.06-ce,外加一个主节点和Kubeadm v1.7.0版的Kubernetes。然后,我使用kubectl create-f部署了WebUI(仪表板)https://git.io/kube-dashboard并使用kubectl编辑服务kubernetes dashboard-n kube系统将类型更改为节点端口 我可以访问它,但它缺少CPU/内存使用图。所以我按照的说明部署了heapster和influxdb,但是我仍然看不到图表 怎
kubectl create-f部署了WebUI(仪表板)https://git.io/kube-dashboard
并使用kubectl编辑服务kubernetes dashboard-n kube系统将类型更改为节点端口
我可以访问它,但它缺少CPU/内存使用图。所以我按照的说明部署了heapster和influxdb,但是我仍然看不到图表
怎么了
更新:
检查日志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吊舱。请尝试安装并检查
同时安装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
或者你也可以使用helm来安装heapster。我已经试过了,但是图还是不见了。我想,我还需要一个XDB服务。这是我说我做了以下与此链接信息没有成功。。。有什么想法吗?你的日志消息说缺少访问权限,尝试创建heapster rbac,并在帖子中添加评论。是的!太好了!它就像一个符咒。非常感谢@sfgroups!我不明白为什么这是必要的,因为我遵循中的说明,没有任何关于添加heapster rbac的内容。因此,你是绝对正确的。