forked from Lancger/opsfull
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
# 一、问题现象 | ||
```bash | ||
heapster logs这个报错啥情况 | ||
E0918 16:56:05.022867 1 manager.go:101] Error in scraping containers from kubelet_summary:10.10.188.242:10255: Get http://10.10.188.242:10255/stats/summary/: dial tcp 10.10.188.242:10255: getsockopt: connection refused | ||
``` | ||
# 排查思路 | ||
|
||
|
||
``` | ||
1、排查下kubelet,10255是它暴露的端口 | ||
service kubelet status #看状态是正常的 | ||
#在10.10.188.242上执行 | ||
[root@localhost ~]# netstat -lnpt | grep 10255 | ||
tcp 0 0 10.10.188.240:10255 0.0.0.0:* LISTEN 9243/kubelet | ||
看了下/var/log/pods/kube-system_heapster-5f848f54bc-rtbv4_abf53b7c-491f-472a-9e8b-815066a6ae3d/heapster下日志 所有的物理节点都是10255 拒绝连接 | ||
2、浏览器访问查看数据 | ||
10.10.188.242 是你节点的IP吧,正常的话浏览器访问http://IP:10255/stats/summary是有值的,你看下,如果没有那就是kubelet的配置出问题 | ||
``` |