반응형
1, 2, 3,4 모니터링 툴을 위한 api 준비과정.
사용 API : git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git
Deploy the metrics-server by creating all the components downloaded.
Run the kubectl create -f . command from within the downloaded repository.
controlplane kubernetes-metrics-server ➜ kubectl top node
5. Identify the node that consumes the most CPU(cores).
controlplane kubernetes-metrics-server on master ➜ k top nodes
NAME CPU(cores) CPU% MEMORY(bytes) MEMORY%
controlplane 238m 0% 1116Mi 0%
node01 26m 0% 359Mi 0%
answer : controlplane
6. Identify the node that consumes the most Memory(bytes).
- 위 지표에서 확인가능하다.
answer : controlplane
7. Identify the POD that consumes the most Memory(bytes) in default namespace.
controlplane kubernetes-metrics-server on master ➜ kubectl top pod
NAME CPU(cores) MEMORY(bytes)
elephant 14m 32Mi
lion 1m 18Mi
rabbit 104m 252Mi
answer : rabbit
8. Identify the POD that consumes the least CPU(cores) in default namespace.
- 위 지표에서 확인 가능하다.
answe. :lion
'IT 기술 > k8s' 카테고리의 다른 글
[cka] Rolling Updates and Rollbacks (0) | 2024.07.02 |
---|---|
[cka] Managing Application Logs (0) | 2024.06.24 |
[cka] Multiple Schedulers (0) | 2024.06.23 |
[cka] Resource Limits (0) | 2024.06.22 |
[cka] Node Affinity (0) | 2024.06.08 |
댓글