k8s-deployment/values/common/values.tcp-route.yaml

41 lines
959 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:
version: {{ .proxyProtocolVersion }}
{{- end }}
{{- end }}
- |
{{ range .Values.udpRoutes }}
---
apiVersion: traefik.io/v1alpha1
kind: IngressRouteUDP
metadata:
name: {{ .name }}
spec:
entryPoints:
- {{ .entrypoint }}
routes:
- match: {{ .match }}
services:
- name: {{ .service }}
nativeLB: true
port: {{ .port }}
{{- end }}