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 Overview を参照してください。