stalwart-mail/templates/traefik.yaml

22 lines
564 B
YAML
Raw Normal View History

2024-06-10 10:08:42 +00:00
{{- if .Values.traefik.enabled }}
{{- range $port, $entryport := .Values.traefik.ports }}
2024-06-10 10:08:42 +00:00
---
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: {{ include "stalwart-mail.fullname" $ }}-{{ $port }}
spec:
entryPoints:
- {{ $entryport }}
routes:
2024-06-10 16:12:41 +00:00
{{- range $index, $host := $.Values.traefik.hosts }}
- match: HostSNI(`{{ $host }}`)
2024-06-10 10:08:42 +00:00
services:
- name: {{ include "stalwart-mail.fullname" $ }}
port: {{ $port }}
{{- end }}
2024-06-10 10:08:42 +00:00
tls:
2024-06-10 16:12:41 +00:00
secretName: {{ $.Values.traefik.tlsSecretName }}
2024-06-10 10:08:42 +00:00
{{- end }}
{{- end }}