mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
cb9c5435fd
Correct what I think are copy/paste errors. |
||
---|---|---|
.. | ||
50-haproxy.sh | ||
README.md | ||
update-haproxy.sh |
Run haproxy on your UDM
Features
- Load balance services on your UDM, because why not?.
- Persists through reboots and firmware updates.
Requirements
- You have successfully setup the on boot script described here
- You have to have services you want to load-balance, an example would be a multi-master k3s cluster.
Steps
-
Pull your image with
podman pull docker.io/library/haproxy
. -
(Optional) Configure a network using the generic cni network 20-dns.conflist and update its values to reflect your environment
-
Copy 50-haproxy.sh to
/mnt/data/on_boot.d/50-haproxy.sh
. -
Create a persistant directory and config for haproxy to use:
mkdir -p /mnt/data/haproxy touch /mnt/data/haproxy/haproxy.cfg
-
Add your config to
/mnt/data/haproxy/haproxy.cfg
. Each configuration is unique, so check out some resouces like haproxy.com for basics. -
Run
/mnt/data/on_boot.d/50-haproxy.sh
Upgrading Easily (if at all)
- Edit update-haproxy.sh to use the same command you used at installation (if changed).
- Copy the update-haproxy.sh to
/mnt/data/scripts
- Anytime you want to update your installation, simply run
/mnt/data/scripts/update-haproxy.sh