관리 메뉴

피터의 개발이야기

[Kubernetes] metrics-server 설치과정 본문

Kubernetes/Logging & Monitoring

[Kubernetes] metrics-server 설치과정

기록하는 백앤드개발자 2023. 7. 1. 21:22
반응형

[kubernetes] 쿠버네티스 목차

[kubernetes] 모니터링 방법 정리

ㅁ 개요

 ㅇ 쿠버네티스 모니터링을 위한 Metrics 서버 설치 과정이다.

 ㅇ Node과 Pod의 CPU, Memory 사용량을 모니터링 할 수 있다.

 ㅇ [kubernetes] Metrics Server 설치, Metrics API not available 에러 해결 과정에서 설치과정을 다시 정리하였습니다.

 

ㅁ git 소스 

$ git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git

$ ls
aggregated-metrics-reader.yaml  auth-reader.yaml         metrics-server-deployment.yaml  README.md
auth-delegator.yaml             metrics-apiservice.yaml  metrics-server-service.yaml     resource-reader.yaml

 

ㅁ create

$ kubectl create -f .
clusterrole.rbac.authorization.k8s.io/system:aggregated-metrics-reader created
clusterrolebinding.rbac.authorization.k8s.io/metrics-server:system:auth-delegator created
rolebinding.rbac.authorization.k8s.io/metrics-server-auth-reader created
apiservice.apiregistration.k8s.io/v1beta1.metrics.k8s.io created
serviceaccount/metrics-server created
deployment.apps/metrics-server created
service/metrics-server created
clusterrole.rbac.authorization.k8s.io/system:metrics-server created
clusterrolebinding.rbac.authorization.k8s.io/system:metrics-server created

 

ㅁ 설치 확인

$ kubectl get po -n kube-system
NAME                               READY   STATUS    RESTARTS        AGE
~~~
metrics-server-74f6f6c5bf-6hh5q    1/1     Running   0               10s
~~~

 

 

ㅁ top 명령어를 통한 리소스 확인

# Node의 메트릭 정보 확인
$ kubectl top no
NAME           CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%
minikube       402m         8%     1081Mi          13%
minikube-m02   179m         3%     721Mi           9%

# Pod의 메트릭 정보 확인
$ kubectl top po
NAME           CPU(cores)   MEMORY(bytes)
mysql-temp-0   22m          493Mi

 

 

ㅁ Node metrics data 

$ kubectl get --raw "/api/v1/nodes/minikube/proxy/stats/summary"
{
 "node": {
  "nodeName": "minikube",
  "systemContainers": [
   {
    "name": "pods",
    "startTime": "2023-06-26T22:20:11Z",
    "cpu": {
     "time": "2023-07-01T12:19:24Z",
     "usageNanoCores": 247422746,
     "usageCoreNanoSeconds": 27124091165000
    },
    "memory": {
     "time": "2023-07-01T12:19:24Z",
     "availableBytes": 7590301696,
     "usageBytes": 1210609664,
     "workingSetBytes": 642527232,
     "rssBytes": 502964224,
     "pageFaults": 2205017,
     "majorPageFaults": 3247
    }
   },
   {
    "name": "kubelet",
    "startTime": "2023-06-26T22:20:11Z",
    "cpu": {
     "time": "2023-07-01T12:19:23Z",
     "usageNanoCores": 52659070,
     "usageCoreNanoSeconds": 6391574545000
    },
    "memory": {
     "time": "2023-07-01T12:19:23Z",
     "usageBytes": 123101184,
     "workingSetBytes": 69611520,
     "rssBytes": 43044864,
     "pageFaults": 308441,
     "majorPageFaults": 617
    }
   }
  ],
  "startTime": "2023-06-21T02:22:59Z",
  "cpu": {
   "time": "2023-07-01T12:19:24Z",
   "usageNanoCores": 393726945,
   "usageCoreNanoSeconds": 44654266470000
  },
  "memory": {
   "time": "2023-07-01T12:19:24Z",
   "availableBytes": 7096651776,
   "usageBytes": 1811714048,
   "workingSetBytes": 1136177152,
   "rssBytes": 697163776,
   "pageFaults": 197855128,
   "majorPageFaults": 6342
  },
  "network": {
   "time": "2023-07-01T12:19:24Z",
   "name": "eth0",
   "rxBytes": 27787199,
   "rxErrors": 0,
   "txBytes": 245859609,
   "txErrors": 0,
   "interfaces": [
    {
     "name": "tunl0",
     "rxBytes": 0,
     "rxErrors": 0,
     "txBytes": 0,
     "txErrors": 0
    },
    {
     "name": "ip6tnl0",
     "rxBytes": 0,
     "rxErrors": 0,
     "txBytes": 0,
     "txErrors": 0
    },
    {
     "name": "bridge",
     "rxBytes": 44096686,
     "rxErrors": 0,
     "txBytes": 93699976,
     "txErrors": 0
    },
    {
     "name": "eth0",
     "rxBytes": 27787199,
     "rxErrors": 0,
     "txBytes": 245859609,
     "txErrors": 0
    }
   ]
  },
  "fs": {
   "time": "2023-07-01T12:19:24Z",
   "availableBytes": 43497144320,
   "capacityBytes": 62671097856,
   "usedBytes": 15957237760,
   "inodesFree": 3687397,
   "inodes": 3907584,
   "inodesUsed": 220187
  },
  "runtime": {
   "imageFs": {
    "time": "1970-01-01T00:00:01Z",
    "availableBytes": 43497144320,
    "capacityBytes": 62671097856,
    "usedBytes": 886583,
    "inodesFree": 3687397,
    "inodes": 3907584,
    "inodesUsed": 431
   }
  },
  "rlimit": {
   "time": "2023-07-01T12:19:31Z",
   "maxpid": 61899,
   "curproc": 1407
  }
 },
 "pods": [
  {
   "podRef": {
    "name": "kube-controller-manager-minikube",
    "namespace": "kube-system",
    "uid": "466b9e73e627277a8c24637c2fa6442d"
   },
   "startTime": "2023-06-26T22:20:12Z",
   "containers": [
    {
     "name": "kube-controller-manager",
     "startTime": "2023-06-26T22:20:12Z",
     "cpu": {
      "time": "2023-07-01T12:19:31Z",
      "usageNanoCores": 45473994,
      "usageCoreNanoSeconds": 4662238221000
     },
     "memory": {
      "time": "2023-07-01T12:19:31Z",
      "workingSetBytes": 119676928
     },
     "rootfs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 0,
      "inodesFree": 3687397,
      "inodes": 3907584
     },
     "logs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 8192,
      "inodesFree": 3687397,
      "inodes": 3907584,
      "inodesUsed": 2
     }
    }
   ],
   "cpu": {
    "time": "2023-07-01T12:19:20Z",
    "usageNanoCores": 45598638,
    "usageCoreNanoSeconds": 4661833920000
   },
   "memory": {
    "time": "2023-07-01T12:19:20Z",
    "usageBytes": 119898112,
    "workingSetBytes": 53510144,
    "rssBytes": 46395392,
    "pageFaults": 25538,
    "majorPageFaults": 587
   },
   "ephemeral-storage": {
    "time": "2023-07-01T12:19:31Z",
    "availableBytes": 43497144320,
    "capacityBytes": 62671097856,
    "usedBytes": 12288,
    "inodesFree": 3687397,
    "inodes": 3907584,
    "inodesUsed": 3
   },
   "process_stats": {
    "process_count": 0
   }
  },
  {
   "podRef": {
    "name": "kube-proxy-msqw9",
    "namespace": "kube-system",
    "uid": "e2dc7670-0967-4229-9c3b-53a018ea935b"
   },
   "startTime": "2023-06-26T22:20:19Z",
   "containers": [
    {
     "name": "kube-proxy",
     "startTime": "2023-06-26T22:20:19Z",
     "cpu": {
      "time": "2023-07-01T12:19:31Z",
      "usageNanoCores": 635147,
      "usageCoreNanoSeconds": 96122888000
     },
     "memory": {
      "time": "2023-07-01T12:19:31Z",
      "workingSetBytes": 52137984
     },
     "rootfs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 180,
      "inodesFree": 3687397,
      "inodes": 3907584
     },
     "logs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 8192,
      "inodesFree": 3687397,
      "inodes": 3907584,
      "inodesUsed": 2
     }
    }
   ],
   "cpu": {
    "time": "2023-07-01T12:19:25Z",
    "usageNanoCores": 629003,
    "usageCoreNanoSeconds": 96131594000
   },
   "memory": {
    "time": "2023-07-01T12:19:25Z",
    "usageBytes": 52469760,
    "workingSetBytes": 19451904,
    "rssBytes": 10579968,
    "pageFaults": 721160,
    "majorPageFaults": 320
   },
   "volume": [
    {
     "time": "2023-07-01T12:18:54Z",
     "availableBytes": 43497148416,
     "capacityBytes": 62671097856,
     "usedBytes": 16384,
     "inodesFree": 3687397,
     "inodes": 3907584,
     "inodesUsed": 7,
     "name": "kube-proxy"
    },
    {
     "time": "2023-07-01T12:18:54Z",
     "availableBytes": 8232816640,
     "capacityBytes": 8232828928,
     "usedBytes": 12288,
     "inodesFree": 1004975,
     "inodes": 1004984,
     "inodesUsed": 9,
     "name": "kube-api-access-qvznm"
    }
   ],
   "ephemeral-storage": {
    "time": "2023-07-01T12:19:31Z",
    "availableBytes": 43497144320,
    "capacityBytes": 62671097856,
    "usedBytes": 28852,
    "inodesFree": 3687397,
    "inodes": 3907584,
    "inodesUsed": 10
   },
   "process_stats": {
    "process_count": 0
   }
  },
  {
   "podRef": {
    "name": "ingress-nginx-controller-6cc5ccb977-klk4q",
    "namespace": "ingress-nginx",
    "uid": "a8c48a07-4782-4c3c-90f8-c6675ecd2adc"
   },
   "startTime": "2023-06-26T22:20:19Z",
   "containers": [
    {
     "name": "controller",
     "startTime": "2023-06-26T22:20:19Z",
     "cpu": {
      "time": "2023-07-01T12:19:31Z",
      "usageNanoCores": 4411501,
      "usageCoreNanoSeconds": 485512015000
     },
     "memory": {
      "time": "2023-07-01T12:19:31Z",
      "workingSetBytes": 172228608
     },
     "rootfs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 17531,
      "inodesFree": 3687397,
      "inodes": 3907584
     },
     "logs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 8192,
      "inodesFree": 3687397,
      "inodes": 3907584,
      "inodesUsed": 2
     }
    }
   ],
   "cpu": {
    "time": "2023-07-01T12:19:27Z",
    "usageNanoCores": 4563627,
    "usageCoreNanoSeconds": 485494338000
   },
   "memory": {
    "time": "2023-07-01T12:19:27Z",
    "usageBytes": 172625920,
    "workingSetBytes": 138649600,
    "rssBytes": 94089216,
    "pageFaults": 166591,
    "majorPageFaults": 357
   },
   "volume": [
    {
     "time": "2023-07-01T12:18:01Z",
     "availableBytes": 8232816640,
     "capacityBytes": 8232828928,
     "usedBytes": 12288,
     "inodesFree": 1004975,
     "inodes": 1004984,
     "inodesUsed": 9,
     "name": "kube-api-access-zd44s"
    },
    {
     "time": "2023-07-01T12:18:01Z",
     "availableBytes": 8232816640,
     "capacityBytes": 8232828928,
     "usedBytes": 12288,
     "inodesFree": 1004975,
     "inodes": 1004984,
     "inodesUsed": 9,
     "name": "webhook-cert"
    }
   ],
   "ephemeral-storage": {
    "time": "2023-07-01T12:19:31Z",
    "availableBytes": 43497144320,
    "capacityBytes": 62671097856,
    "usedBytes": 29819,
    "inodesFree": 3687397,
    "inodes": 3907584,
    "inodesUsed": 3
   },
   "process_stats": {
    "process_count": 0
   }
  },
  {
   "podRef": {
    "name": "coredns-787d4945fb-4gg56",
    "namespace": "kube-system",
    "uid": "988d0984-c489-41d1-b9a7-09ee2249b00c"
   },
   "startTime": "2023-06-26T22:20:18Z",
   "containers": [
    {
     "name": "coredns",
     "startTime": "2023-06-26T22:20:18Z",
     "cpu": {
      "time": "2023-07-01T12:19:30Z",
      "usageNanoCores": 5767564,
      "usageCoreNanoSeconds": 668645291000
     },
     "memory": {
      "time": "2023-07-01T12:19:30Z",
      "workingSetBytes": 51666944
     },
     "rootfs": {
      "time": "2023-07-01T12:19:30Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 0,
      "inodesFree": 3687397,
      "inodes": 3907584
     },
     "logs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 8192,
      "inodesFree": 3687397,
      "inodes": 3907584,
      "inodesUsed": 2
     }
    }
   ],
   "cpu": {
    "time": "2023-07-01T12:19:13Z",
    "usageNanoCores": 6390353,
    "usageCoreNanoSeconds": 668560522000
   },
   "memory": {
    "time": "2023-07-01T12:19:13Z",
    "availableBytes": 159522816,
    "usageBytes": 51953664,
    "workingSetBytes": 18735104,
    "rssBytes": 13463552,
    "pageFaults": 41241,
    "majorPageFaults": 317
   },
   "volume": [
    {
     "time": "2023-07-01T12:18:39Z",
     "availableBytes": 43497148416,
     "capacityBytes": 62671097856,
     "usedBytes": 12288,
     "inodesFree": 3687397,
     "inodes": 3907584,
     "inodesUsed": 5,
     "name": "config-volume"
    },
    {
     "time": "2023-07-01T12:18:39Z",
     "availableBytes": 178245632,
     "capacityBytes": 178257920,
     "usedBytes": 12288,
     "inodesFree": 1004975,
     "inodes": 1004984,
     "inodesUsed": 9,
     "name": "kube-api-access-pq468"
    }
   ],
   "ephemeral-storage": {
    "time": "2023-07-01T12:19:31Z",
    "availableBytes": 43497144320,
    "capacityBytes": 62671097856,
    "usedBytes": 24576,
    "inodesFree": 3687397,
    "inodes": 3907584,
    "inodesUsed": 8
   },
   "process_stats": {
    "process_count": 0
   }
  },
  {
   "podRef": {
    "name": "kube-apiserver-minikube",
    "namespace": "kube-system",
    "uid": "0b22c93ca7da29c09aa6b8cc3bbcdcfd"
   },
   "startTime": "2023-06-26T22:20:12Z",
   "containers": [
    {
     "name": "kube-apiserver",
     "startTime": "2023-06-26T22:20:12Z",
     "cpu": {
      "time": "2023-07-01T12:19:31Z",
      "usageNanoCores": 111157163,
      "usageCoreNanoSeconds": 12348431458000
     },
     "memory": {
      "time": "2023-07-01T12:19:31Z",
      "workingSetBytes": 353914880
     },
     "rootfs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 0,
      "inodesFree": 3687397,
      "inodes": 3907584
     },
     "logs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 8192,
      "inodesFree": 3687397,
      "inodes": 3907584,
      "inodesUsed": 2
     }
    }
   ],
   "cpu": {
    "time": "2023-07-01T12:19:30Z",
    "usageNanoCores": 115945588,
    "usageCoreNanoSeconds": 12348346034000
   },
   "memory": {
    "time": "2023-07-01T12:19:30Z",
    "usageBytes": 354156544,
    "workingSetBytes": 275423232,
    "rssBytes": 260345856,
    "pageFaults": 92822,
    "majorPageFaults": 687
   },
   "ephemeral-storage": {
    "time": "2023-07-01T12:19:31Z",
    "availableBytes": 43497144320,
    "capacityBytes": 62671097856,
    "usedBytes": 12288,
    "inodesFree": 3687397,
    "inodes": 3907584,
    "inodesUsed": 3
   },
   "process_stats": {
    "process_count": 0
   }
  },
  {
   "podRef": {
    "name": "etcd-minikube",
    "namespace": "kube-system",
    "uid": "3b49f033407c2103916da3213c1a8193"
   },
   "startTime": "2023-06-26T22:20:12Z",
   "containers": [
    {
     "name": "etcd",
     "startTime": "2023-06-26T22:20:12Z",
     "cpu": {
      "time": "2023-07-01T12:19:31Z",
      "usageNanoCores": 64146777,
      "usageCoreNanoSeconds": 7415641956000
     },
     "memory": {
      "time": "2023-07-01T12:19:31Z",
      "workingSetBytes": 329531392
     },
     "rootfs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 0,
      "inodesFree": 3687397,
      "inodes": 3907584
     },
     "logs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 8192,
      "inodesFree": 3687397,
      "inodes": 3907584,
      "inodesUsed": 2
     }
    }
   ],
   "cpu": {
    "time": "2023-07-01T12:19:20Z",
    "usageNanoCores": 66061687,
    "usageCoreNanoSeconds": 7414988320000
   },
   "memory": {
    "time": "2023-07-01T12:19:20Z",
    "usageBytes": 330055680,
    "workingSetBytes": 88477696,
    "rssBytes": 44122112,
    "pageFaults": 73296,
    "majorPageFaults": 199
   },
   "ephemeral-storage": {
    "time": "2023-07-01T12:19:31Z",
    "availableBytes": 43497144320,
    "capacityBytes": 62671097856,
    "usedBytes": 12288,
    "inodesFree": 3687397,
    "inodes": 3907584,
    "inodesUsed": 3
   },
   "process_stats": {
    "process_count": 0
   }
  },
  {
   "podRef": {
    "name": "storage-provisioner",
    "namespace": "kube-system",
    "uid": "ed69bf56-ba10-419e-9569-d6c316ef1317"
   },
   "startTime": "2023-06-26T22:20:19Z",
   "containers": [
    {
     "name": "storage-provisioner",
     "startTime": "2023-06-26T22:20:33Z",
     "cpu": {
      "time": "2023-07-01T12:19:31Z",
      "usageNanoCores": 3871301,
      "usageCoreNanoSeconds": 484364376000
     },
     "memory": {
      "time": "2023-07-01T12:19:31Z",
      "workingSetBytes": 12877824
     },
     "rootfs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 0,
      "inodesFree": 3687397,
      "inodes": 3907584
     },
     "logs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 8192,
      "inodesFree": 3687397,
      "inodes": 3907584,
      "inodesUsed": 2
     }
    }
   ],
   "cpu": {
    "time": "2023-07-01T12:19:21Z",
    "usageNanoCores": 3478077,
    "usageCoreNanoSeconds": 484393643000
   },
   "memory": {
    "time": "2023-07-01T12:19:21Z",
    "usageBytes": 34275328,
    "workingSetBytes": 12640256,
    "rssBytes": 9867264,
    "pageFaults": 167583,
    "majorPageFaults": 213
   },
   "volume": [
    {
     "time": "2023-07-01T12:17:47Z",
     "availableBytes": 8232816640,
     "capacityBytes": 8232828928,
     "usedBytes": 12288,
     "inodesFree": 1004975,
     "inodes": 1004984,
     "inodesUsed": 9,
     "name": "kube-api-access-44m2p"
    }
   ],
   "ephemeral-storage": {
    "time": "2023-07-01T12:19:31Z",
    "availableBytes": 43497144320,
    "capacityBytes": 62671097856,
    "usedBytes": 12288,
    "inodesFree": 3687397,
    "inodes": 3907584,
    "inodesUsed": 3
   },
   "process_stats": {
    "process_count": 0
   }
  },
  {
   "podRef": {
    "name": "kindnet-2r4fn",
    "namespace": "kube-system",
    "uid": "b95b1b74-96bd-46a9-97d5-a10c14cbb048"
   },
   "startTime": "2023-06-26T22:20:18Z",
   "containers": [
    {
     "name": "kindnet-cni",
     "startTime": "2023-06-26T22:20:18Z",
     "cpu": {
      "time": "2023-07-01T12:19:31Z",
      "usageNanoCores": 4072907,
      "usageCoreNanoSeconds": 126294154000
     },
     "memory": {
      "time": "2023-07-01T12:19:31Z",
      "workingSetBytes": 34963456
     },
     "rootfs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 180,
      "inodesFree": 3687397,
      "inodes": 3907584
     },
     "logs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 8192,
      "inodesFree": 3687397,
      "inodes": 3907584,
      "inodesUsed": 2
     }
    }
   ],
   "cpu": {
    "time": "2023-07-01T12:19:24Z",
    "usageNanoCores": 2818159,
    "usageCoreNanoSeconds": 126311261000
   },
   "memory": {
    "time": "2023-07-01T12:19:24Z",
    "availableBytes": 38563840,
    "usageBytes": 35188736,
    "workingSetBytes": 13864960,
    "rssBytes": 8114176,
    "pageFaults": 906240,
    "majorPageFaults": 222
   },
   "volume": [
    {
     "time": "2023-07-01T12:18:03Z",
     "availableBytes": 52416512,
     "capacityBytes": 52428800,
     "usedBytes": 12288,
     "inodesFree": 1004975,
     "inodes": 1004984,
     "inodesUsed": 9,
     "name": "kube-api-access-s4z4g"
    }
   ],
   "ephemeral-storage": {
    "time": "2023-07-01T12:19:31Z",
    "availableBytes": 43497144320,
    "capacityBytes": 62671097856,
    "usedBytes": 12468,
    "inodesFree": 3687397,
    "inodes": 3907584,
    "inodesUsed": 3
   },
   "process_stats": {
    "process_count": 0
   }
  },
  {
   "podRef": {
    "name": "kube-scheduler-minikube",
    "namespace": "kube-system",
    "uid": "0818f4b1a57de9c3f9c82667e7fcc870"
   },
   "startTime": "2023-06-26T22:20:12Z",
   "containers": [
    {
     "name": "kube-scheduler",
     "startTime": "2023-06-26T22:20:12Z",
     "cpu": {
      "time": "2023-07-01T12:19:31Z",
      "usageNanoCores": 7917245,
      "usageCoreNanoSeconds": 838329584000
     },
     "memory": {
      "time": "2023-07-01T12:19:31Z",
      "workingSetBytes": 59346944
     },
     "rootfs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 0,
      "inodesFree": 3687397,
      "inodes": 3907584
     },
     "logs": {
      "time": "2023-07-01T12:19:31Z",
      "availableBytes": 43497144320,
      "capacityBytes": 62671097856,
      "usedBytes": 8192,
      "inodesFree": 3687397,
      "inodes": 3907584,
      "inodesUsed": 2
     }
    }
   ],
   "cpu": {
    "time": "2023-07-01T12:19:31Z",
    "usageNanoCores": 8611370,
    "usageCoreNanoSeconds": 838347027000
   },
   "memory": {
    "time": "2023-07-01T12:19:31Z",
    "usageBytes": 59867136,
    "workingSetBytes": 21594112,
    "rssBytes": 15953920,
    "pageFaults": 10551,
    "majorPageFaults": 345
   },
   "ephemeral-storage": {
    "time": "2023-07-01T12:19:31Z",
    "availableBytes": 43497144320,
    "capacityBytes": 62671097856,
    "usedBytes": 12288,
    "inodesFree": 3687397,
    "inodes": 3907584,
    "inodesUsed": 3
   },
   "process_stats": {
    "process_count": 0
   }
  }
 ]
}%

 

 

 

ㅁ 참고

Node metrics data

 

Node metrics data

Mechanisms for accessing metrics at node, volume, pod and container level, as seen by the kubelet.

kubernetes.io

 

반응형
Comments