2023-03-29 13:30:45 -05:00
|
|
|
#---------------------------------------------------------------------
|
|
|
|
# Global settings
|
|
|
|
#---------------------------------------------------------------------
|
|
|
|
global
|
|
|
|
log /dev/log local0
|
|
|
|
log /dev/log local1 notice
|
|
|
|
daemon
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------
|
|
|
|
# common defaults that all the 'listen' and 'backend' sections will
|
|
|
|
# use if not designated in their block
|
|
|
|
#---------------------------------------------------------------------
|
|
|
|
defaults
|
|
|
|
mode http
|
|
|
|
log global
|
|
|
|
option httplog
|
|
|
|
option dontlognull
|
2023-05-02 15:39:07 -05:00
|
|
|
option http-server-close
|
2023-03-29 13:30:45 -05:00
|
|
|
option forwardfor except 127.0.0.0/8
|
|
|
|
option redispatch
|
2023-05-02 15:39:07 -05:00
|
|
|
retries 3
|
2023-03-29 13:30:45 -05:00
|
|
|
timeout http-request 10s
|
|
|
|
timeout queue 20s
|
2023-05-02 15:39:07 -05:00
|
|
|
timeout connect 10s
|
|
|
|
timeout client 1h
|
|
|
|
timeout server 1h
|
2023-03-29 13:30:45 -05:00
|
|
|
timeout http-keep-alive 10s
|
|
|
|
timeout check 10s
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------
|
2023-05-02 15:39:07 -05:00
|
|
|
# apiserver frontend which proxys to the control plane nodes
|
2023-03-29 13:30:45 -05:00
|
|
|
#---------------------------------------------------------------------
|
2023-05-02 15:39:07 -05:00
|
|
|
frontend k8s_apiserver
|
|
|
|
bind *:6443
|
|
|
|
mode tcp
|
|
|
|
option tcplog
|
|
|
|
default_backend k8s_controlplane
|
|
|
|
|
|
|
|
frontend talos_apiserver
|
|
|
|
bind *:50000
|
|
|
|
mode tcp
|
|
|
|
option tcplog
|
|
|
|
default_backend talos_controlplane
|
|
|
|
|
2023-03-29 13:30:45 -05:00
|
|
|
#---------------------------------------------------------------------
|
2023-05-02 15:39:07 -05:00
|
|
|
# round robin balancing for apiserver
|
2023-03-29 13:30:45 -05:00
|
|
|
#---------------------------------------------------------------------
|
2023-05-02 15:39:07 -05:00
|
|
|
backend k8s_controlplane
|
|
|
|
option httpchk GET /healthz
|
|
|
|
http-check expect status 200
|
|
|
|
mode tcp
|
|
|
|
option ssl-hello-chk
|
|
|
|
balance roundrobin
|
2023-12-13 19:27:31 -06:00
|
|
|
server worker1 10.1.1.61:6443 check
|
|
|
|
server worker2 10.1.1.62:6443 check
|
|
|
|
server worker3 10.1.1.63:6443 check
|
2023-05-02 15:39:07 -05:00
|
|
|
|
|
|
|
backend talos_controlplane
|
|
|
|
option httpchk GET /healthz
|
|
|
|
http-check expect status 200
|
|
|
|
mode tcp
|
|
|
|
option ssl-hello-chk
|
|
|
|
balance roundrobin
|
2023-12-13 19:27:31 -06:00
|
|
|
server worker1 10.1.1.61:50000 check
|
|
|
|
server worker2 10.1.1.62:50000 check
|
|
|
|
server worker3 10.1.1.63:50000 check
|