cluster-configs/hypervisor/haproxy
2025-05-02 20:07:32 +02:00
..
docker-compose.yml init 2025-05-02 20:07:32 +02:00
haproxy.conf init 2025-05-02 20:07:32 +02:00
Readme.md init 2025-05-02 20:07:32 +02:00

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.