diff --git a/apps/syncthing/app/release.yaml b/apps/syncthing/app/release.yaml index 5f5e015..73c10c2 100644 --- a/apps/syncthing/app/release.yaml +++ b/apps/syncthing/app/release.yaml @@ -29,25 +29,11 @@ spec: ports: http: port: 8384 - listen: - enabled: true - type: NodePort - externalTrafficPolicy: Local - ports: listen: - enabled: true port: 22000 - protocol: TCP - targetPort: 32200 - nodePort: 32200 - discovery: - enabled: true - type: NodePort - externalTrafficPolicy: Local - ports: discovery: - enabled: true port: 21027 - protocol: UDP - targetPort: 30027 - nodePort: 30027 + listen: + enabled: false + discovery: + enabled: false diff --git a/apps/syncthing/app/route.yaml b/apps/syncthing/app/route.yaml index 7a47995..73e4a57 100644 --- a/apps/syncthing/app/route.yaml +++ b/apps/syncthing/app/route.yaml @@ -15,3 +15,30 @@ spec: services: - name: syncthing port: http +--- +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRouteTCP +metadata: + name: syncthing-route-listen + namespace: syncthing +spec: + entryPoints: + - sct-listen + routes: + - match: HostSNI(`*`) + services: + - name: syncthing + port: listen +--- +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRouteUDP +metadata: + name: syncthing-route-listen + namespace: syncthing +spec: + entryPoints: + - sct-discovery + routes: + - services: + - name: syncthing + port: discovery diff --git a/apps/traefik/app/traefik-config.yaml b/apps/traefik/app/traefik-config.yaml index 32e7fa8..bc03fb0 100644 --- a/apps/traefik/app/traefik-config.yaml +++ b/apps/traefik/app/traefik-config.yaml @@ -18,4 +18,14 @@ spec: port: 8022 expose: true exposedPort: 8022 - protocol: TCP \ No newline at end of file + protocol: TCP + sct-discovery: + port: 21027 + expose: true + exposedPort: 21027 + protocol: UDP + sct-listen: + port: 22000 + expose: true + exposedPort: 22000 + protocol: TCP