2022-01-01 20:30:32 +00:00
|
|
|
global
|
2022-01-02 11:51:55 +00:00
|
|
|
user haproxy
|
|
|
|
group haproxy
|
2022-01-01 20:30:32 +00:00
|
|
|
log /dev/log local0
|
|
|
|
log /dev/log local1 notice
|
|
|
|
daemon
|
|
|
|
|
|
|
|
defaults
|
|
|
|
mode http
|
|
|
|
log global
|
|
|
|
option httplog
|
|
|
|
option dontlognull
|
|
|
|
option http-server-close
|
|
|
|
option forwardfor except 127.0.0.0/8
|
|
|
|
option redispatch
|
|
|
|
retries 1
|
|
|
|
timeout http-request 10s
|
|
|
|
timeout queue 20s
|
|
|
|
timeout connect 5s
|
|
|
|
timeout client 20s
|
|
|
|
timeout server 20s
|
|
|
|
timeout http-keep-alive 10s
|
|
|
|
timeout check 10s
|
|
|
|
|
|
|
|
frontend apiserver
|
|
|
|
bind *:6443
|
|
|
|
mode tcp
|
|
|
|
option tcplog
|
|
|
|
default_backend apiserver
|
|
|
|
|
|
|
|
backend apiserver
|
|
|
|
option httpchk GET /healthz
|
|
|
|
http-check expect status 200
|
|
|
|
mode tcp
|
|
|
|
option ssl-hello-chk
|
|
|
|
balance roundrobin
|
2022-01-02 11:51:55 +00:00
|
|
|
server worker-4 10.1.1.9:6442 check
|
2022-01-02 17:29:35 +00:00
|
|
|
server worker-3 172.28.0.19:6442 check
|