add ingress for alertmanager
This commit is contained in:
parent
0e7a148ede
commit
fe57939119
1 changed files with 29 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue