From fe57939119eecb6b1604c891eda348e6e6e8dad1 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Thu, 6 Apr 2023 18:04:04 +0200 Subject: [PATCH] add ingress for alertmanager --- prometheus/ingress.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/prometheus/ingress.yaml b/prometheus/ingress.yaml index af6a97f..609e8b5 100644 --- a/prometheus/ingress.yaml +++ b/prometheus/ingress.yaml @@ -28,6 +28,35 @@ spec: - prometheus.apps.yolokube.de secretName: prometheus-cert --- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: alertmanager-ingress + namespace: prometheus + annotations: + kubernetes.io/ingress.class: "nginx" + cert-manager.io/cluster-issuer: letsencrypt-prod + acme.cert-manager.io/http01-edit-in-place: "true" + ingress.kubernetes.io/ssl-redirect: "false" + nginx.org/basic-auth-secret: prometheus-basic-auth-secret + #nginx.org/ssl-services: "prometheus-server" +spec: + rules: + - host: "alertmanager.apps.yolokube.de" + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: prometheus-alertmanager + port: + number: 9093 + tls: + - hosts: + - alertmanager.apps.yolokube.de + secretName: alertmanager-cert +--- kind: Secret metadata: name: prometheus-basic-auth-secret