-
下载helm 文件
-
prom ingress
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: prom-ingress
namespace: kube-prometheus-stack
labels:
app: prom
annotations:
ingress.kubernetes.io/proxy-body-size: '0'
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-body-size: '0'
spec:
rules:
- host: prom.lingxd.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: kube-prometheus-stack-prometheus
port:
number: 9090
- grafana ingress
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: grafana-ingress
namespace: kube-prometheus-stack
labels:
app: grafana
annotations:
ingress.kubernetes.io/proxy-body-size: '0'
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-body-size: '0'
spec:
rules:
- host: grafana.lingxd.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: kube-prometheus-stack-grafana
port:
number: 80
标签:ingress,kubernetes,prometheus,io,helm,kube,stack
From: https://blog.51cto.com/lingxudong/5972876