一键部署命令
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install prometheus prometheus-community/kube-prometheus-stack
暴露服务
- 使用port-forward
kubectl port-forward --address 0.0.0.0 deployment/prometheus-grafana 3000
- 使用ingress
cat grafana-ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: grafana-ingress
spec:
defaultBackend:
service:
name: prometheus-grafana
port:
number: 80
使用浏览器登录
username: admin
password: prom-operator文章来源:https://www.toymoban.com/news/detail-738040.html
参考文档
Install Prometheus and Grafana on Kubernetes using Helm (k21academy.com)
https://k21academy.com/docker-kubernetes/prometheus-grafana-monitoring/文章来源地址https://www.toymoban.com/news/detail-738040.html
到了这里,关于helm一键部署grafana的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!