k8s-deployment/values/common/values.tcp-route.yaml
2024-11-07 10:09:56 +01:00

23 lines
540 B
YAML

traefik:
templates:
- |
{{ range .Values.tcpRoutes }}
---
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: {{ .name }}
spec:
entryPoints:
- {{ .entrypoint }}
routes:
- match: {{ .match }}
services:
- name: {{ .service }}
nativeLB: true
port: {{ .port }}
{{- if .proxyProtocolVersion }}
proxyProtocol: {{ .proxyProtocolVersion }}
{{- end }}
{{- end }}