From 7753b8a09b63511181f73157fc8ffa9c19f27abf Mon Sep 17 00:00:00 2001 From: trivernis Date: Thu, 23 Nov 2023 11:41:18 +0100 Subject: [PATCH] Add a service for each syncthing port --- apps/syncthing/app/release.yaml | 18 ++++++++++++++---- apps/syncthing/app/route.yaml | 4 ++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/apps/syncthing/app/release.yaml b/apps/syncthing/app/release.yaml index 73c10c2..eebe3ce 100644 --- a/apps/syncthing/app/release.yaml +++ b/apps/syncthing/app/release.yaml @@ -29,11 +29,21 @@ spec: ports: http: port: 8384 + listen: + enabled: true + type: ClusterIP + externalTrafficPolicy: null + ports: listen: + protocol: TCP port: 22000 + + discovery: + enabled: true + type: ClusterIP + externalTrafficPolicy: null + ports: discovery: + protocol: UDP port: 21027 - listen: - enabled: false - discovery: - enabled: false + diff --git a/apps/syncthing/app/route.yaml b/apps/syncthing/app/route.yaml index 5325c8e..f1b08be 100644 --- a/apps/syncthing/app/route.yaml +++ b/apps/syncthing/app/route.yaml @@ -27,7 +27,7 @@ spec: routes: - match: HostSNI(`*`) services: - - name: syncthing + - name: syncthing-listen port: listen --- apiVersion: traefik.containo.us/v1alpha1 @@ -40,5 +40,5 @@ spec: - sct-discovery routes: - services: - - name: syncthing + - name: syncthing-discovery port: discovery