大佬,你好,照着这个方法搭建的成功后,却无法使用heapster监控,部署后报错heapster容器报错
I0816 10:04:59.743015 1 heapster.go:72] /heapster –source=kubernetes:https://kubernetes.default –sink=influxdb:http://monitoring-influxdb.kube-system.svc:8086
I0816 10:04:59.743166 1 heapster.go:73] Heapster version v1.4.2
I0816 10:04:59.743472 1 configs.go:61] Using Kubernetes client with master “https://kubernetes.default” and version v1
I0816 10:04:59.743508 1 configs.go:62] Using kubelet port 10255
E0816 10:05:20.868872 1 influxdb.go:264] 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 10.96.137.221:8086: getsockopt: connection refused, will retry on use
I0816 10:05:20.868946 1 influxdb.go:278] created influxdb sink with options: host:monitoring-influxdb.kube-system.svc:8086 user:root db:k8s
I0816 10:05:20.868977 1 heapster.go:196] Starting with InfluxDB Sink
I0816 10:05:20.868983 1 heapster.go:196] Starting with Metric Sink
I0816 10:05:20.890192 1 heapster.go:106] Starting heapster on port 8082
E0816 10:06:05.003967 1 kubelet.go:231] error while getting containers from Kubelet: failed to get all container stats from Kubelet URL “http://192.168.145.252:10255/stats/container/”: Post http://192.168.145.252:10255/stats/container/: dial tcp 192.168.145.252:10255: getsockopt: connection refused
E0816 10:06:05.004645 1 kubelet.go:231] error while getting containers from Kubelet: failed to get all container stats from Kubelet URL “http://192.168.145.250:10255/stats/container/”: Post http://192.168.145.250:10255/stats/container/: dial tcp 192.168.145.250:10255: getsockopt: connection refused
E0816 10:06:05.006770 1 kubelet.go:231] error while getting containers from Kubelet: failed to get all container stats from Kubelet URL “http://192.168.145.251:10255/stats/container/”: Post http://192.168.145.251:10255/stats/container/: dial tcp 192.168.145.251:10255: getsockopt: connection refused
I0816 10:06:05.019231 1 influxdb.go:241] Created database “k8s” on influxDB server at “monitoring-influxdb.kube-system.svc:8086”
E0816 10:07:05.001407 1 kubelet.go:231] error while getting containers from Kubelet: failed to get all container stats from Kubelet URL
diwuqingoru5年前 (2018-08-16)登录以回复