Change syncthing routes to use specified syncthing ports

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

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

@ -15,3 +15,30 @@ spec:
services:
- name: syncthing
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

@ -19,3 +19,13 @@ spec:
expose: true
exposedPort: 8022
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