Error in scraping containers from kubelet failed to get all container stats from Kubelet URL
Liyankuan opened this issue · 2 comments
Liyankuan commented
麻烦指导,谢谢
版本和配置信息
ubuntu@vm-1-10-ubuntu:~$ kubectl version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.1", GitCommit:"eec55b9ba98609a46fee712359c7b5b365bdd920", GitTreeState:"clean", BuildDate:"2018-12-13T10:39:04Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.1", GitCommit:"eec55b9ba98609a46fee712359c7b5b365bdd920", GitTreeState:"clean", BuildDate:"2018-12-13T10:31:33Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}
- 网络插件:
ubuntu@vm-1-10-ubuntu:~$ kubectl get daemonsets -n kube-system
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
kube-flannel-ds-amd64 3 3 3 3 3 beta.kubernetes.io/arch=amd64 15d
kube-flannel-ds-arm 0 0 0 0 0 beta.kubernetes.io/arch=arm 15d
kube-flannel-ds-arm64 0 0 0 0 0 beta.kubernetes.io/arch=arm64 15d
kube-flannel-ds-ppc64le 0 0 0 0 0 beta.kubernetes.io/arch=ppc64le 15d
kube-flannel-ds-s390x 0 0 0 0 0 beta.kubernetes.io/arch=s390x 15d
kube-proxy 3 3 3 3 3 <none> 15d
操作
# kubectl apply -f heapster/deploy/kube-config/influxdb
# kubectl apply -f heapster/deploy/kube-config/rbac/heapster-rbac.yaml
手动修改了heapster.yaml中的 - --source=kubernetes:https://kubernetes.default?kubeletPort=10250 指定了端口号。
日志或报错信息
# kubectl logs heapster-6d49cb8bb4-8qcsh -n kube-system
E0102 11:12:05.002780 1 manager.go:101] Error in scraping containers from kubelet:10.10.1.5:10250: failed to get all container stats from Kubelet URL "http://10.10.1.5:10250/stats/container/": Post http://10.10.1.5:10250/stats/container/: malformed HTTP response "\x15\x03\x01\x00\x02\x02\x16"
E0102 11:12:05.012661 1 manager.go:101] Error in scraping containers from kubelet:10.10.1.10:10250: failed to get all container stats from Kubelet URL "http://10.10.1.10:10250/stats/container/": Post http://10.10.1.10:10250/stats/container/: malformed HTTP response "\x15\x03\x01\x00\x02\x02\x16"
E0102 11:12:05.015074 1 manager.go:101] Error in scraping containers from kubelet:10.10.1.16:10250: failed to get all container stats from Kubelet URL "http://10.10.1.16:10250/stats/container/": Post http://10.10.1.16:10250/stats/container/: malformed HTTP response "\x15\x03\x01\x00\x02\x02\x16"
W0102 11:12:25.000370 1 manager.go:152] Failed to get all responses in time (got 0/3)
E0102 11:13:05.010849 1 manager.go:101] Error in scraping containers from kubelet:10.10.1.16:10250: failed to get all container stats from Kubelet URL "http://10.10.1.16:10250/stats/container/": Post http://10.10.1.16:10250/stats/container/: malformed HTTP response "\x15\x03\x01\x00\x02\x02\x16"
E0102 11:13:05.022202 1 manager.go:101] Error in scraping containers from kubelet:10.10.1.5:10250: failed to get all container stats from Kubelet URL "http://10.10.1.5:10250/stats/container/": Post http://10.10.1.5:10250/stats/container/: malformed HTTP response "\x15\x03\x01\x00\x02\x02\x16"
E0102 11:13:05.022509 1 manager.go:101] Error in scraping containers from kubelet:10.10.1.10:10250: failed to get all container stats from Kubelet URL "http://10.10.1.10:10250/stats/container/": Post http://10.10.1.10:10250/stats/container/: malformed HTTP response "\x15\x03\x01\x00\x02\x02\x16"
W0102 11:13:25.000391 1 manager.go:152] Failed to get all responses in time (got 0/3)
365moods commented
@Liyankuan 请问解决了么
sdddhhll commented