k8s-deployment/values/common/values.tcp-route.yaml
Nikolai Rodionov e5114fcbb3 Configuring xray
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2025-05-17 13:02:50 +00:00

45 lines
1.0 KiB
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 }}
{{- with .tls }}
tls:
{{ . | toYaml | nindent 4 }}
{{- 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 }}