.. | ||
docker-compose.yml | ||
haproxy.conf | ||
Readme.md |
HAProxy
The loadbalancer running on the hypervisor, this forwards traffic to all the nodes.
Requirements
Install
# copy to /opt/haproxy on the hypervisor
docker compose up -d
Config
- Add ports to docker-compose.yml 'ports' section.
- Add backend to haproxy.conf with all the nodes' IPs.
- Make sure to match it with the traefik or service definitions in k8s.