mochi/nixos/hosts/telperion/config/haproxy.nix

53 lines
1 KiB
Nix
Raw Normal View History

{ ... }:
''
global
log /dev/log local0
log /dev/log local1 notice
daemon
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
option redispatch
retries 3
timeout http-request 10s
timeout queue 20s
timeout connect 10s
timeout client 1h
timeout server 1h
timeout http-keep-alive 10s
timeout check 10s
2024-07-14 13:28:59 -05:00
frontend k8s_homelab_apiserver
bind *:6443
mode tcp
option tcplog
2024-07-14 13:28:59 -05:00
default_backend k8s_homelab_controlplane
2024-07-14 13:28:59 -05:00
frontend k8s_erebor_apiserver
bind *:6444
mode tcp
option tcplog
2024-07-14 13:28:59 -05:00
default_backend k8s_erebor_controlplane
2024-07-14 13:28:59 -05:00
backend k8s_homelab_controlplane
option httpchk GET /healthz
http-check expect status 200
mode tcp
option ssl-hello-chk
balance roundrobin
2024-07-14 13:28:59 -05:00
server shadowfax 10.1.1.61:6443 check
2024-07-14 13:28:59 -05:00
backend k8s_erebor_controlplane
option httpchk GET /healthz
http-check expect status 200
mode tcp
2024-07-14 13:28:59 -05:00
option ssl-hello-chk
balance roundrobin
server nenya 10.1.1.81:6443 check
server vilya 10.1.1.82:6443 check
server narya 10.1.1.83:6443 check
''