ubuntu 22.04/24.04 apt install 오류 해결 - `Download is performed unsandboxed as root as file`
ubuntu에서 apt install로 deb 파일 설치 시, Download is performed unsandboxed as root as file" 오류 해결 방안
Oracle JDK을 ubuntu에 설치하다 보면 아래와 같은 오류가 발생되는 경우가 있다.
ubuntu에서 apt install로 deb 파일 설치 시, Download is performed unsandboxed as root as file" 오류 해결 방안
Oracle JDK을 ubuntu에 설치하다 보면 아래와 같은 오류가 발생되는 경우가 있다.
kubernetes에서 metrics-server와 prometheus는 kubernetes의 어딘가에서 발생하는 메트릭을 수집해서 보여준다.
pod의 CPU 사용량, Memory 사용량 등과 같은 메트릭이 어딘가로 부터 제공해주고, 이를 수집하는 것이다.
이에 대한 정확한 메커니즘을 확인한다.
cAdvisor는 여러가지 리소스를 위해서 Google에서 개발된 모듈이다.
https://github.com/google/cadvisor
해당 모듈이 kubelet에 포함되어 동작한다.
https://github.com/kubernetes/kubernetes/tree/master/pkg/kubelet/cadvisor
kubernetes에 공식 문서에 dashboard 설치 가이드가 존재한다.
그런 이유로 간단하게 설치하는 방법만 정리한다.https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/
Prometheus adapter로 구현한 custom metrics을 통해 HorizontalPodAutoscaler를 구현해본다.
prometheus adapter Rule 이해 - Deep Dive
https://blog.encicle.com/prometheus-adapter-rule-ihae-deep-dive
위 예제를 진행했다면, traefik의 메트릭에 대해서 아래와 같이 3개의 resource를 분리해서 커스텀 메트릭을 저장하고 있다.
prometheus adapter의 rule 수정을 통해 다양한 사례를 예제로 살펴보고 깊이 이해하는 섹션을 갖는다.
traefik_service_requests_total
메트릭은 아래와 같이 code, container, ... , namespace, pod, service, ingress와 같은 라벨이 붙어 있다.
Prometheus에 수집된 메트릭 정보