我通过kubeadm v1.12.1启动了kubernetes集群。我部署了metric-server,heapster,influxdb,当我运行kubectl顶级节点/吊舱时,它给出了节点/吊舱的资源使用百分比。
但是kubernetes仪表板没有显示与资源使用相关的图?
仪表板窗格中的日志:
I1216 12:05:24.783577 1 serving.go:273] Generated self-signed cert (apiserver.local.config/certificates/apiserver.crt, apiserver.local.config/certificates/apiserver.key)
[restful] 2018/12/16 12:05:25 log.go:33: [restful/swagger] listing is available at https://:443/swaggerapi
[restful] 2018/12/16 12:05:25 log.go:33: [restful/swagger] https://:443/swaggerui/ is mapped to folder /swagger-ui/
I1216 12:05:25.802972 1 serve.go:96] Serving securely on [::]:443
和metrics-server pod日志:
I1216 07:41:31.026907 1 heapster.go:78] /heapster --source=kubernetes:https://kubernetes.default --sink=influxdb:http://monitoring-influxdb.kube-system.svc:8086
I1216 07:41:31.027094 1 heapster.go:79] Heapster version v1.5.4
I1216 07:41:31.027431 1 configs.go:61] Using Kubernetes client with master "https://kubernetes.default" and version v1
I1216 07:41:31.027472 1 configs.go:62] Using kubelet port 10255
E1216 07:41:31.640701 1 influxdb.go:297] issues while creating an InfluxDB sink: failed to ping InfluxDB server at "monitoring-influxdb.kube-system.svc:8086" - Get http://monitoring-influxdb.kube-system.svc:8086/ping: dial tcp: lookup monitoring-influxdb.kube-system.svc on 10.96.0.10:53: no such host, will retry on use
I1216 07:41:31.640740 1 influxdb.go:312] created influxdb sink with options: host:monitoring-influxdb.kube-system.svc:8086 user:root db:k8s
I1216 07:41:31.640767 1 heapster.go:202] Starting with InfluxDB Sink
I1216 07:41:31.640774 1 heapster.go:202] Starting with Metric Sink
I1216 07:41:31.662028 1 heapster.go:112] Starting heapster on port 8082
E1216 07:42:05.003697 1 manager.go:101] Error in scraping containers from kubelet:10.10.62.140:10255: failed to get all container stats from Kubelet URL "http://10.10.62.140:10255/stats/container/": Post http://10.10.62.140:10255/stats/container/: dial tcp 10.10.62.140:10255: getsockopt: connection refused
最后是heapster pod日志:
select c.*,
array_agg(d.name) as designer_names
from car c left outer join
designscar ds
on c.carid = ds.carid left outer join
designer d
on frb.persnr = r.persnr
group by c.carid ; -- allowed assuming `carid` is the primary key
有什么主意吗?