diff --git a/syncthing/service-lb.yaml b/syncthing/service-lb.yaml new file mode 100644 index 0000000..6e642db --- /dev/null +++ b/syncthing/service-lb.yaml @@ -0,0 +1,23 @@ +apiVersion: v1 +kind: Service +metadata: + name: syncthing-lb + namespace: syncthing + annotations: + metallb.universe.tf/loadBalancerIPs: 192.168.2.247 +spec: + selector: + app: syncthing + type: LoadBalancer + ports: + - name: tcp + port: 22000 + targetPort: tcp + - name: quic + port: 22000 + protocol: UDP + targetPort: quic + - name: discovery + port: 21027 + protocol: UDP + targetPort: discovery diff --git a/syncthing/service.yaml b/syncthing/service.yaml index 6286054..b810ae2 100644 --- a/syncthing/service.yaml +++ b/syncthing/service.yaml @@ -10,14 +10,3 @@ spec: - name: http port: 8384 targetPort: http - - name: tcp - port: 22000 - targetPort: tcp - - name: quic - port: 22000 - protocol: UDP - targetPort: quic - - name: discovery - port: 21027 - protocol: UDP - targetPort: discovery