Red Hat Training
A Red Hat training course is available for OpenShift Container Platform
22.5. 节点报告的系统资源
每个节点报告容器运行时和 kubelet 使用的系统资源。要简化 system-reserved 的配置,请使用节点概述 API 查看节点的资源使用情况。节点概述位于 <master>/api/v1/nodes/<node>/proxy/stats/summary。
例如,要从 cluster.node22 节点访问资源,请运行以下命令:
$ curl <certificate details> https://<master>/api/v1/nodes/cluster.node22/proxy/stats/summary
响应中包括类似如下的信息:
{
"node": {
"nodeName": "cluster.node22",
"systemContainers": [
{
"cpu": {
"usageCoreNanoSeconds": 929684480915,
"usageNanoCores": 190998084
},
"memory": {
"rssBytes": 176726016,
"usageBytes": 1397895168,
"workingSetBytes": 1050509312
},
"name": "kubelet"
},
{
"cpu": {
"usageCoreNanoSeconds": 128521955903,
"usageNanoCores": 5928600
},
"memory": {
"rssBytes": 35958784,
"usageBytes": 129671168,
"workingSetBytes": 102416384
},
"name": "runtime"
}
]
}
}有关证书详情的详情,请参阅 REST API 概述。