zhu733756 版本号看错了,我重新测一下,我看截图去了
———-
更新新进展: 确实跟大佬发现的问题一样,跟内核版本和操作系统没关系,我测试centos和ubuntu两个操作系统下的docker版本都是 边缘节点所在的pod metrics为空:
curl -ki localhost:10350/stats/summary
{
"node": {
"nodeName": "edgenode-wnlb",
"systemContainers": [
{
"name": "pods",
"startTime": "2021-05-19T02:51:55Z",
"cpu": {
"time": "2021-05-19T02:58:41Z",
"usageNanoCores": 0,
"usageCoreNanoSeconds": 81040512
},
"memory": {
"time": "2021-05-19T02:58:41Z",
"availableBytes": 1033695232,
"usageBytes": 6631424,
"workingSetBytes": 6430720,
"rssBytes": 1507328,
"pageFaults": 0,
"majorPageFaults": 0
}
},
{
"name": "kubelet",
"startTime": "2021-05-19T02:51:55Z",
"cpu": {
"time": "2021-05-19T02:58:39Z",
"usageNanoCores": 7826966,
"usageCoreNanoSeconds": 4676221589
},
"memory": {
"time": "2021-05-19T02:58:39Z",
"usageBytes": 40861696,
"workingSetBytes": 39350272,
"rssBytes": 37896192,
"pageFaults": 33726,
"majorPageFaults": 17
}
},
{
"name": "runtime",
"startTime": "2021-05-19T02:51:55Z",
"cpu": {
"time": "2021-05-19T02:58:36Z",
"usageNanoCores": 2928595,
"usageCoreNanoSeconds": 7161199061
},
"memory": {
"time": "2021-05-19T02:58:36Z",
"usageBytes": 212058112,
"workingSetBytes": 98967552,
"rssBytes": 59850752,
"pageFaults": 94660,
"majorPageFaults": 55
}
}
],
"startTime": "2021-05-19T02:21:35Z",
"cpu": {
"time": "2021-05-19T02:58:39Z",
"usageNanoCores": 17408633,
"usageCoreNanoSeconds": 65648880947
},
"memory": {
"time": "2021-05-19T02:58:39Z",
"availableBytes": 557957120,
"usageBytes": 847716352,
"workingSetBytes": 482168832,
"rssBytes": 149295104,
"pageFaults": 42402,
"majorPageFaults": 85
},
"network": {
"time": "2021-05-19T02:58:39Z",
"name": "eth0",
"rxBytes": 222483820,
"rxErrors": 0,
"txBytes": 8539498,
"txErrors": 0,
"interfaces": [
{
"name": "eth0",
"rxBytes": 222483820,
"rxErrors": 0,
"txBytes": 8539498,
"txErrors": 0
}
]
},
"fs": {
"time": "2021-05-19T02:58:39Z",
"availableBytes": 18767896576,
"capacityBytes": 20749852672,
"usedBytes": 1965178880,
"inodesFree": 2492827,
"inodes": 2560000,
"inodesUsed": 67173
},
"runtime": {
"imageFs": {
"time": "2021-05-19T02:58:39Z",
"availableBytes": 18767896576,
"capacityBytes": 20749852672,
"usedBytes": 133865025,
"inodesFree": 2492827,
"inodes": 2560000,
"inodesUsed": 67173
}
},
"rlimit": {
"time": "2021-05-19T02:58:42Z",
"maxpid": 32768,
"curproc": 177
}
},
#正常来说这里应该是有数据的
"pods": []