Загрузка данных


global
    log /dev/log local0
    user _haproxy
    group _haproxy
    daemon

defaults
    log global
    mode tcp
    option tcplog
    timeout connect 5s
    timeout client 50s
    timeout server 50s

frontend k8s-api
    bind *:7443
    default_backend k8s-nodes

backend k8s-nodes
    balance roundrobin
    server k8s-srv1 192.168.0.201:6443 check
    server k8s-srv2 192.168.0.202:6443 check
    server k8s-srv3 192.168.0.203:6443 check

listen stats
    bind *:9000
    mode http
    stats enable
    stats uri /haproxy_stats
    stats refresh 10s
    stats admin if LOCALHOST