update service config

This commit is contained in:
Remy Moll 2023-12-30 10:38:59 +01:00
parent 26b06c553a
commit 21d100fb62

View File

@ -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