Change syncthing routes to use specified syncthing ports

main
trivernis 1 year ago
parent 82b04387a2
commit 02e7845b62
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -29,25 +29,11 @@ spec:
ports: ports:
http: http:
port: 8384 port: 8384
listen:
enabled: true
type: NodePort
externalTrafficPolicy: Local
ports:
listen: listen:
enabled: true
port: 22000 port: 22000
protocol: TCP
targetPort: 32200
nodePort: 32200
discovery:
enabled: true
type: NodePort
externalTrafficPolicy: Local
ports:
discovery: discovery:
enabled: true
port: 21027 port: 21027
protocol: UDP listen:
targetPort: 30027 enabled: false
nodePort: 30027 discovery:
enabled: false

@ -15,3 +15,30 @@ spec:
services: services:
- name: syncthing - name: syncthing
port: http port: http
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
name: syncthing-route-listen
namespace: syncthing
spec:
entryPoints:
- sct-listen
routes:
- match: HostSNI(`*`)
services:
- name: syncthing
port: listen
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteUDP
metadata:
name: syncthing-route-listen
namespace: syncthing
spec:
entryPoints:
- sct-discovery
routes:
- services:
- name: syncthing
port: discovery

@ -18,4 +18,14 @@ spec:
port: 8022 port: 8022
expose: true expose: true
exposedPort: 8022 exposedPort: 8022
protocol: TCP protocol: TCP
sct-discovery:
port: 21027
expose: true
exposedPort: 21027
protocol: UDP
sct-listen:
port: 22000
expose: true
exposedPort: 22000
protocol: TCP

Loading…
Cancel
Save