stalwart-mail/templates/traefik.yaml

24 lines
572 B
YAML

{{- if .Values.traefik.enabled }}
{{- range $port, $entryport := .Values.traefik.ports }}
---
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: {{ include "stalwart-mail.fullname" $ }}-{{ $port }}
spec:
entryPoints:
- {{ $entryport }}
routes:
{{- range $host := .Values.traefik.hosts }}
- match: HostSNI(`{{ $host }}`)
services:
- name: {{ include "stalwart-mail.fullname" $ }}
port: {{ $port }}
proxyProtocol:
version: 2
{{- end }}
tls:
passthrough: true
{{- end }}
{{- end }}