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