From 463cdf3d85e656cdbcb06fbc44fc603fc4b76c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=8C=AF=E5=AE=87?= <> Date: Mon, 13 Jan 2025 02:47:09 +0800 Subject: [PATCH] fix(manifests): update Grafana ingress to use ingressClassName and correct indentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙振宇 <> --- .../grafana-ingress.yaml | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/cluster/manifests/freeleaps-monitoring-system/kube-prometheus-stack/grafana-ingress.yaml b/cluster/manifests/freeleaps-monitoring-system/kube-prometheus-stack/grafana-ingress.yaml index 0ffa8f52..4de9a3c3 100644 --- a/cluster/manifests/freeleaps-monitoring-system/kube-prometheus-stack/grafana-ingress.yaml +++ b/cluster/manifests/freeleaps-monitoring-system/kube-prometheus-stack/grafana-ingress.yaml @@ -17,23 +17,20 @@ kind: Ingress metadata: name: grafana-ingress namespace: freeleaps-monitoring-system - annotations: - kubernetes.io/ingress.class: nginx - nginx.ingress.kubernetes.io/service-upstream: "true" - nginx.ingress.kubernetes.io/upstream-vhost: "kube-prometheus-stack-grafana.freeleaps-monitoring-system.svc.freeleaps.cluster" spec: + ingressClassName: nginx tls: - - hosts: - - grafana.mathmast.com - secretName: grafana-dot-mathmast-com-tls + - hosts: + - grafana.mathmast.com + secretName: grafana-dot-mathmast-com-tls rules: - - host: grafana.mathmast.com - http: - paths: - - path: /* - pathType: ImplementationSpecific - backend: - service: - name: kube-prometheus-stack-grafana - port: - number: 80 \ No newline at end of file + - host: grafana.mathmast.com + http: + paths: + - path: /* + pathType: ImplementationSpecific + backend: + service: + name: kube-prometheus-stack-grafana + port: + number: 80 \ No newline at end of file