add ingress for alertmanager

This commit is contained in:
Aaron Riedel 2023-04-06 18:04:04 +02:00
parent 0e7a148ede
commit fe57939119
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -28,6 +28,35 @@ spec:
- prometheus.apps.yolokube.de - prometheus.apps.yolokube.de
secretName: prometheus-cert 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 kind: Secret
metadata: metadata:
name: prometheus-basic-auth-secret name: prometheus-basic-auth-secret