feat(alert_manager): added config for ingress
!5 nofusscomputing/infrastructure/configuration-management/inventory-production!3
This commit is contained in:
14
templates/Ingress-Multi.yaml
Normal file
14
templates/Ingress-Multi.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{{ if .Values.nfc_monitoring.alert_manager.ingress.enabled | default "false" | bool -}}
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: alert_manager
|
||||||
|
namespace: "{{ .Values.nfc_monitoring.alert_manager.namespace }}"
|
||||||
|
annotations:
|
||||||
|
{{ toYaml $.Values.nfc_monitoring.alert_manager.ingress.annotations | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
{{ toYaml $.Values.nfc_monitoring.alert_manager.ingress.spec | nindent 2 }}
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
23
values.yaml
23
values.yaml
@ -16,6 +16,29 @@ nfc_monitoring:
|
|||||||
name: quay.io/prometheus/alertmanager
|
name: quay.io/prometheus/alertmanager
|
||||||
tag: 'v0.26.0'
|
tag: 'v0.26.0'
|
||||||
|
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: "selfsigned-issuer"
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
# enabled: false # Optional, boolean.
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- alert-manager.local
|
||||||
|
secretName: certificate-tls-alert-manager
|
||||||
|
rules:
|
||||||
|
- host: alert-manager.local
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: alertmanager-main
|
||||||
|
port:
|
||||||
|
name: web
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/instance: main
|
app.kubernetes.io/instance: main
|
||||||
app.kubernetes.io/component: alert-router
|
app.kubernetes.io/component: alert-router
|
||||||
|
Reference in New Issue
Block a user