V.Dev Blog

k8s裝監控Grafana and prometheus

k8s裝監控Grafana and prometheus

k8s-monitor

kubernetes 安裝監控 prometheus & grafana

先取得Repo

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

安裝

helm install prometheus prometheus-community/kube-prometheus-stack -n monitoring

等他跑完 這樣就裝好了

我自己是用docker 的nginx反向代理出來

取得 key

 kubectl get secret prometheus-grafana -oyaml -n monitoring

解密

 echo "cHJvbS1vcGVyYXRvcg==" | base64 --decode

帳/密: admin / prom-operator


YT教學 基本架設- no k8s


YT教學 k8s github helm code