I have two Ubuntu home servers on the same local network, each with a separate Cloudflare Tunnel. Both servers run the same Docker app on port 38080. I have a Cloudflare public Load Balancer, and I want to attach both servers to it so they share traffic for the same app and port. How can I set this up?
Depending on your context of “separate Cloudflare Tunnel”.
If both server connect to a same tunnel ID, then you can just use the replica feature, but this is only HA with no complex LB logic which mean you cannot configure complex LB logic weightage.
If you require complex LB logic weightage such as round-robin or traffic steering then you can combine with Cloudflare load balancing product but both server need to connect to two different tunnels ID.