Cloud Computing & MSA

쿠버네티스에 프로메테우스 설치하기 (Kubernetes Prometheus 설치)

제임스딘·2022년 4월 11일·조회 2,208

본 문서는 프로메테우스를 쿠버네티스로 설치하는 방법을 설명한다.


0. 적절한 작업 디렉토리로 이동

1. 리포지토리 추가

$ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts

2. Git 클론

$ git clone https://github.com/prometheus-community/helm-charts

이 작업을 끝내면 현재 디렉토리에 helm-charts 폴더가 생성된다.

3. values.yaml 파일 수정

values.yaml 파일은 helm-charts/charts/prometheus 폴더 하위에 있다.

1) alertmanager, pushgateway, prometheus에 대한 PV 설정을 false로 변경 (선택) : 개인 테스트 용도인 경우 변경 가능

2) NodeExporter, server, pushgateway의 nodePort를 설정하고 type:을 NodePort로 변경

댓글 0

로그인 후 댓글을 남길 수 있습니다.

아직 댓글이 없습니다.