https://ekwkqk12.tistory.com/48
https://jerryljh.tistory.com/9
- helm chart 다운
>> helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
>> helm repo update
>> helm pull prometheus-community/kube-prometheus-stack --untar - namespace 생성
>> kubectl create ns prometheus - values.yaml 수정
>> cd kube-prometheus-stack
>> vi values.yaml
...
alertmanager:
...
service:
...
nodePort: 32002
type: NodePort
...
##########################
prometheus:
...
service:
...
nodePort: 32001
type: NodePort
...
retentionSize: "2GB" ## raspberry pi의 작은 용량을 감안 + 테스트용
...
##########################
prometheusOperator:
tls:
enabled: false
admissionwebhooks:
enabled: false
- grafana values.yaml 수정
>> vi charts/grafana/values.yaml
...
service:
nodePort: 32003
type: NodePort
...
- 배포
>> helm install prometheus -f values.yaml ./ -n prometheus
(install에서 cannot re-use ~~ 에러시 uninstall -> install 또는 upgrade 사용)
>> (upgrade) helm upgrade --install prometheus -f values.yaml ./ -n prometheus
>> (uninstall) helm uninstall prometheus -n prometheus
(시간이 좀 걸림)
- 동작 확인
>> kubectl get all -n prometheus
- Grafana 확인
>> http://{아이피}:32003
- ID : admin
- PW : prom-operator
- alertmanager 확인
>> http://{아이피}:32002
- Prometheus 확인
>> http://{아이피}:32001
https://github.com/prometheus-community/helm-charts/issues/418
'만들기 > EagleEye' 카테고리의 다른 글
[EagleEye][환경세팅] K8s Promehteus metrics 연결 문제 해결 (connection refused, connection reset by peer) (0) | 2022.05.17 |
---|---|
[EagleEye][환경세팅] Grafana - Prometheus 연동 (0) | 2022.05.17 |
[EagleEye][환경세팅] Helm 설치 (0) | 2022.05.16 |
[EagleEye][환경세팅] 쿠버네티스 설치 4 - 애드온 설치 (Dashboard, Metric Server, Prometheus and Grafana 설명) (0) | 2022.05.16 |
[EagleEye][서비스구현] K8s 클러스터 애플리케이션에 접속하기 (0) | 2022.05.15 |