Hi
the config below seems functional for a single server
but i'm stuck on balancing non http calls.
First : traefik is installed on docker, but i have two external machine with the same CloudXR service (fixed network ports)
is a new XR service that for now need six ports,
1 in rtsp (TCP) for the connection and
5 in udp for transactions,
all for a single client connection.
In traefik a TCP with SNI seems not possible without TLS, but rtsp do not use tls.
An healthcheck on the TCP connection could be useful (i can temporarely shutdown the service on one of the external machine for to set as "non part of the balance) but in the documentation is not clear if in traefik 3 is possible.
I tried adding an http service so I can drop one of the ip addresses if the service is down, but I don't know if this is also reflected in the tcp and udp configurations.
# -- HTTP routing
http:
routers:
# --
cxr-https:
entrypoints:
- websecure
tls:
true:
rule: Host(`cxr.somedomain.org`)
service: cxr-https
# --
services:
cxr-https:
loadBalancer:
healthcheck:
path: /
port: 8000
interval: 2s
sticky:
cookie:
httpOnly: false
name: lvl2
secure: true
sameSite: strict
servers:
- url: http://192.168.1.2:8000
- url: http://192.168.1.3:8000
# --------------------------------------
# -- TCP routing
tcp:
routers:
cxr-rtmp:
entrypoints:
- cxr-rtmp
service: cxr-rtmp
rule: HostSNI(`*`)
services:
cxr-rtmp:
loadBalancer:
servers:
- address: 192.168.1.2:48010
- address: 192.168.1.3:48010
# --------------------------------------
# -- UDP routing
udp:
routers:
cxr47999:
entrypoints:
- cxr47999
service: cxr47999
cxr48000:
entrypoints:
- cxr48000
service: cxr48000
cxr47998:
entrypoints:
- cxr47998
service: cxr47998
cxr48005:
entrypoints:
- cxr48005
service: cxr48005
cxr48002:
entrypoints:
- cxr48002
service: cxr48002
services:
cxr47999:
loadBalancer:
servers:
- address: 192.168.1.2:47999
- address: 192.168.1.3:47999
cxr48000:
loadBalancer:
servers:
- address: 192.168.1.2:48000
- address: 192.168.1.3:48000
cxr47998:
loadBalancer:
servers:
- address: 192.168.1.2:47998
- address: 192.168.1.3:47998
cxr48005:
loadBalancer:
servers:
- address: 192.168.1.2:48005
- address: 192.168.1.3:48005
cxr48002:
loadBalancer:
servers:
- address: 192.168.1.2:48002
- address: 192.168.1.3:48002