- Metrics server
- in-memory monitoring solution
- 하나의 클러스터에 하나의 metrics server만
- node와 pod의 metric을 in-memory에 취합하고 저장
- historical metric data를 볼 순 없어서 추가적인 monitoring solution 을 사용해야 함
- kubelet의 subcomponente인 cAdvisor에서 pod metric 수집하고 Metrics server으로 보냄
- Metrics server는 HPA와 VPA할 때에도 필요함.
- 설치하면 kubectl top node, pods 명령어 실행 가능
- Logging
- kubectl logs 명령어로 볼 수 있음
- Pod에 컨테이너가 하나 이상인 경우 kubectl logs 명령어에 pod 이름과 container 이름을 추가로 주어야 함
- Pod의 로그는 각 worker node의 /var/log/containers에 저장됨
'CKA' 카테고리의 다른 글
Commands and Arguments (0) | 2021.09.08 |
---|---|
Application Lifecycle Management (0) | 2021.09.08 |
Multiple Schedulers (0) | 2021.09.07 |
Static Pods (0) | 2021.09.07 |
DaemonSets (0) | 2021.09.05 |