Немного про балансировку с haproxy + ingress Мы используем HAProxy для балансировки трафика на Ingress-ноды Kubernetes. В нашем случае нельзя использовать BGP вместе с MetalLB, поэтому делаем балансировку снаружи — через HAProxy. Конфигурация HAProxy: global log /dev/log local0 log /dev/log local1 notice daemon maxconn 2048 defaults log global mode tcp option tcplog timeout connect 10s timeout client 1m timeout server 1m frontend k8s_api_frontend bind *:8080 default_backend k8s_api_backend backend k8s_api_backend balance roundrobin server master-1 <ip>:6443 check server master-2 <ip>:6443 check server master-3 <ip>:6443 check frontend k8s_http_node_port_frontends bind *:80 default_backend k8s_http_node_port_backend backend k8s_http_node_port_backend mode http balance roundrobin server <ingress-1> <ip>:30080 check frontend k8s_https_node_port_frontends bind *:443 default_backend k8s_https_node_port_backend backend k8s_https_node_port_backend mode tcp balance roundrobi