This commit is contained in:
Thomas Philipona 2023-10-16 20:35:08 +02:00
parent 530acdb363
commit 9e1610443f
No known key found for this signature in database
GPG Key ID: 48284CEF6E0F9F77
2 changed files with 27 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{{- define "alertmanager.sm" }} {{- define "alertmanager.servicemonitor" }}
--- ---
apiVersion: monitoring.coreos.com/v1 apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor kind: ServiceMonitor

View File

@ -23,4 +23,30 @@ spec:
resources: resources:
requests: requests:
storage: 100Mi storage: 100Mi
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
haproxy.org/auth-secret: basic-auth
haproxy.org/auth-type: basic-auth
haproxy.org/auth-realm: Authentication Required
name: {{ .Values.user }}-alertmanager
spec:
ingressClassName: haproxy
rules:
- host: {{ .Values.user }}-alertmanager.training.cluster.acend.ch
http:
paths:
- backend:
service:
name: alertmanager-operated
port:
number: 9093
path: /
pathType: ImplementationSpecific
tls:
- hosts:
- {{ .Values.user }}-alertmanager.training.cluster.acend.ch
secretName: acend-wildcard
{{- end }} {{- end }}