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

41 lines
959 B
YAML
Raw Normal View History

2024-07-13 20:21:59 +00:00
traefik:
templates:
- |
2024-11-07 09:09:56 +00:00
{{ 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 }}
2024-11-08 20:01:38 +00:00
proxyProtocol:
version: {{ .proxyProtocolVersion }}
2024-11-07 09:09:56 +00:00
{{- end }}
{{- end }}
2024-12-12 14:50:20 +00:00
- |
{{ 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 }}