67 lines
2.2 KiB
INI
67 lines
2.2 KiB
INI
|
#---------------------------------------------------------------------
|
||
|
# 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
|
||
|
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
|
||
|
|
||
|
#---------------------------------------------------------------------
|
||
|
# apiserver frontend which proxys to the control plane nodes
|
||
|
#---------------------------------------------------------------------
|
||
|
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
|
||
|
|
||
|
#---------------------------------------------------------------------
|
||
|
# round robin balancing for apiserver
|
||
|
#---------------------------------------------------------------------
|
||
|
backend k8s_controlplane
|
||
|
option httpchk GET /healthz
|
||
|
http-check expect status 200
|
||
|
mode tcp
|
||
|
option ssl-hello-chk
|
||
|
balance roundrobin
|
||
|
server worker1 gandalf.jahanson.tech:6443 check
|
||
|
server worker2 glamdring.jahanson.tech:6443 check
|
||
|
server worker3 lembas.jahanson.tech:6443 check
|
||
|
|
||
|
backend talos_controlplane
|
||
|
option httpchk GET /healthz
|
||
|
http-check expect status 200
|
||
|
mode tcp
|
||
|
option ssl-hello-chk
|
||
|
balance roundrobin
|
||
|
server worker1 gandalf.jahanson.tech:50000 check
|
||
|
server worker2 glamdring.jahanson.tech:50000 check
|
||
|
server worker3 lembas.jahanson.tech:50000 check
|