heapster deployment encountered an error

错误一:
Error in scraping containers from kubelet_summary:192.168.xx.xxx:10255: Get http://192.168.xx.xxx:10255/stats/summary/: dial tcp 192.168.xx.xxx:10255: getsockopt: connection refused
W0425 09:14:25.000355 1 manager.go:152] Failed to get all responses in time (got 0/1)

# Heapster.yaml make the following changes in the manifest file

错误二:
W0703 10:28:25.000491 1 manager.go:152] Failed to get all responses in time (got 0/1)
I0703 10:28:25.013285 1 influxdb.go:274] Created database "k8s" on influxDB server at "monitoring-influxdb.kube-system.svc:8086"
E0703 10:29:05.005431 1 manager.go:101] Error in scraping containers from kubelet:192.168.xx.xxx:10250: failed to get all container stats from Kubelet URL "https://192.168.xx.xxx:10250/stats/container/": request failed - "403 Forbidden", response: "Forbidden (user=system:serviceaccount:kube-system:heapster, verb=create, resource=nodes, subresource=stats)

Solution:
Check ClusterRole: system: heapster authority found that indeed no for Resource: create permission nodes / stats of
#kubectl describe clusterrole system: heapster
generate a list of documents
#kubectl GET clusterrole System: heapster -o YAML> heapster_modify.yaml
#kubectl -f heapster_modify.yaml the Delete
#kubectl the Apply -f heapster_modify.yaml
#kubectl the Delete -f heapster.yaml
#kubectl the Apply -f heapster.yaml

Guess you like

Origin blog.51cto.com/xudate/2416793