ingress-controller-external-example icon indicating copy to clipboard operation
ingress-controller-external-example copied to clipboard

Haprxy

Open issaouib opened this issue 3 years ago • 4 comments

Hello how to configure haproxy for multi master cluster with haproxy-ingress-controller on the same time, I did not deactivate the haproxy service as you indicated in the tutorial because I use it as HA for multi controleplane. the HA service is running but HA-ingress-controller is not. for the Bird.conf configuration I assigned the 3 controlplanes.

controlplane1

protocol bgp { local 192.168.50.21 as 65000; neighbor 192.168.50.22 as 65000; direct; import filter { if ( net ~ [ 172.16.0.0/16{26,26} ] ) then accept; }; export none; }

controlplane2

protocol bgp { local 192.168.50.23 as 65000; neighbor 192.168.50.22 as 65000; direct; import filter { if ( net ~ [ 172.16.0.0/16{26,26} ] ) then accept; }; export none; }

controlplane3

protocol bgp { local 192.168.50.21 as 65000; neighbor 192.168.50.24 as 65000; direct; import filter { if ( net ~ [ 172.16.0.0/16{26,26} ] ) then accept; }; export none; }

worker1

protocol bgp { local 192.168.50.21 as 65000; neighbor 192.168.50.25 as 65000; direct; import filter { if ( net ~ [ 172.16.0.0/16{26,26} ] ) then accept; }; export none; }

worker2

protocol bgp { local 192.168.50.21 as 65000; neighbor 192.168.50.26 as 65000; direct; import filter { if ( net ~ [ 172.16.0.0/16{26,26} ] ) then accept; }; export none; }

issaouib avatar Nov 08 '22 10:11 issaouib

@issaouib I suspect you will not be able to use the same HAProxy service for both use cases, because the ingress controller wants to own / manage HAProxy. I think you would need a separate load balancer for balancing the master nodes. I fear that your configuration would be overwritten otherwise. Have you experienced otherwise?

NickMRamirez avatar Nov 16 '22 00:11 NickMRamirez

I'm also interested in this. Has anyone found this possible?

vhelke avatar Apr 12 '23 15:04 vhelke