$ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
## 프로메테우스 저장소 생성
$ helm install monitor prometheus-community/kube-prometheus-stack --namespace prometheus --create-namespace
## monitor라는 이름으로 설치, prometheus 이름의 namespace 생성
# 서비스 타입을 LoadBalancer로 변경하기 위해 prom-value 파일을 수정한다.
$ vi prom-value.yaml
700행쯤 grafana service type을 LoadBalancer로 변경
grafana:
service:
type: LoadBalancer
$ helm upgrade -n prometheus -f prom-value.yaml monitor prometheus-community/kube-prometheus-stack
service/monitor-grafana가 LoadBalancer 인것을 볼 수 있다.
http://192.168.201.200 접속하면
그라파나를 볼 수 있다.
username : admin
password : prom-operator
를 입력해서 로그인 할 수 있다.
이 그라파나를 통해서 kubernetes를 모니터링 할 수 있다.