From 4a463e489fccf843ca2da0707c84c5957a97fa4f 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:08:21 +0800 Subject: [PATCH] feat(manifests): add Grafana ingress and TLS certificate configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙振宇 <> --- .../grafana-ingress.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 cluster/manifests/freeleaps-monitoring-system/kube-prometheus-stack/grafana-ingress.yaml 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 new file mode 100644 index 00000000..2c3fb780 --- /dev/null +++ b/cluster/manifests/freeleaps-monitoring-system/kube-prometheus-stack/grafana-ingress.yaml @@ -0,0 +1,36 @@ +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: grafana-dot-mathmast-com + namespace: freeleaps-monitoring-system +spec: + commonName: grafana.mathmast.com + dnsNames: + - grafana.mathmast.com + issuerRef: + kind: ClusterIssuer + name: mathmast-dot-com + secretName: grafana-dot-mathmast-com-tls +--- +apiVersion: v1 +kind: Ingress +metadata: + name: grafana-ingress + namespace: freeleaps-monitoring-system +spec: + ingressClassName: nginx + 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