Print
카테고리: [ Cloud Computing & MSA ]
조회수: 1600

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


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로 변경