From 21d100fb62e53f329143adcd83a0143ff8b8b141 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Sat, 30 Dec 2023 10:38:59 +0100 Subject: [PATCH] update service config --- apps/syncthing/service.yaml | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/apps/syncthing/service.yaml b/apps/syncthing/service.yaml index c0746e3..de36de2 100644 --- a/apps/syncthing/service.yaml +++ b/apps/syncthing/service.yaml @@ -1,19 +1,43 @@ apiVersion: v1 kind: Service metadata: - name: syncthing + name: syncthing-web +spec: + selector: + app: syncthing + type: ClusterIP + ports: + - port: 8384 + targetPort: 8384 +--- +apiVersion: v1 +kind: Service +annotations: + metallb.universe.tf/allow-shared-ip: syncthing-service + +metadata: + name: syncthing-listen spec: selector: app: syncthing type: LoadBalancer LoadBalancerIP: 192.168.3.4 ports: - - port: 8384 - targetPort: 8384 - name: syncthing-web - port: 22000 targetPort: 22000 - name: syncthing-listen + protocol: TCP +--- +apiVersion: v1 +kind: Service +annotations: + metallb.universe.tf/allow-shared-ip: syncthing-service + +metadata: + name: syncthing-discover +spec: + selector: + app: syncthing + ports: - port: 22000 targetPort: 22000 - name: syncthing-discover + protocol: UDP