TIL/잡다한
[Grafana] Helm Grafana 설치
재융
2023. 7. 31. 19:44
반응형
본 페이지는 위 링크를 참고하여 만들었습니다.
작업은 다음과 같은 순서로 진행
- 마지막에 port forwarding이후에는 해당 명령어를 실행한 터미널은 종료하면 안됨
# 작업을 위한 namsspace 생성
kubectl create namespace monitoring
# helm repo 추가
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
# helm 을 이용하여 prometheus & grafana 설치
helm install prometheus prometheus-community/kube-prometheus-stack --namespace monitoring
# 설치가 안될경우 아래 링크에서 values.yaml다운로드 이후 그 다음줄 명령어로 설치 진행
# (https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml)
# helm install prometheus prometheus-community/kube-prometheus-stack -f "values.yaml" --namespace monitoring
# port forwarding진행
kubectl port-forward service/prometheus-grafana 3000:80 --namespace monitoring
이렇게 띄워진 grafana의 초기 username / password는 다음과 같음
- username: admin
- password: prom-operator
반응형