From 7d24c579c04fc05b12c0111992b3e79d89deb990 Mon Sep 17 00:00:00 2001 From: Michael Thomson Date: Thu, 6 Jun 2024 16:58:04 -0400 Subject: [PATCH] LB --- syncthing/service-lb.yaml | 23 +++++++++++++++++++++++ syncthing/service.yaml | 11 ----------- 2 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 syncthing/service-lb.yaml 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