Files
kubernetes_monitoring/templates/Ingress-Multi.yaml
Jon 26a78bdb33 feat(grafana): added config for ingress
!5 nofusscomputing/infrastructure/configuration-management/inventory-production!3
2023-11-19 18:02:38 +09:30

30 lines
845 B
YAML

{{ 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 }}
{{ if .Values.nfc_monitoring.grafana.ingress.enabled | default "false" | bool -}}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: grafana
namespace: "{{ .Values.nfc_monitoring.grafana.namespace }}"
annotations:
{{ toYaml $.Values.nfc_monitoring.grafana.ingress.annotations | nindent 4 }}
spec:
{{ toYaml $.Values.nfc_monitoring.grafana.ingress.spec | nindent 2 }}
{{ end }}