unifi-utilities / unifios-utilities

A collection of enhancements for UnifiOS based devices
GNU General Public License v3.0
3.84k stars 415 forks source link

Load Balancing #195

Open turowicz opened 3 years ago

turowicz commented 3 years ago

I need to set up a virtual IP that will be load balancing across multiple clients in a UDM-PRO managed VLAN. Is it possible to achieve this with this project?

cc @boostchicken

SamErde commented 3 years ago

I'm sure you could run a containerized load balancer / reverse proxy such as NGINX, Traefik, or haproxy on UDM after setting up the base UDM Utilities.

boostchicken commented 3 years ago

@turowicz yeah its possible, care to get a bit more techincal on what you want to achieve

turowicz commented 3 years ago

I need to be able to host a kubernetes cluster behind a single IP in such a way, that all nodes are assigned traffic in a round-robin fashion.

kashalls commented 2 years ago

I was looking at implementing ha-proxy using the host's networking on my UDMP. I got the container up and running, just having issues with networking on it using its own ip or the hosts.

Fixed it. I might look into PR-ing it here ina couple days when I iron out the bugs.

turowicz commented 2 years ago

@Kashalls that would be awesome

kashalls commented 2 years ago

@Kashalls that would be awesome

I personally prefer using haproxy with the container networking, but some users might find it better to use a seperate ip. What do you think?

turowicz commented 2 years ago

I don't mind as long as its easy to set up

kashalls commented 2 years ago

I don't mind as long as its easy to set up

It's quite easy. Let me fork and pr.

kashalls commented 2 years ago

I don't mind as long as its easy to set up

https://github.com/boostchicken/udm-utilities/pull/239