Skip to content

Instantly share code, notes, and snippets.

@VerosK
Created June 29, 2022 13:31
Show Gist options
  • Save VerosK/69e1352c42563a049d22510e5d183e94 to your computer and use it in GitHub Desktop.
Save VerosK/69e1352c42563a049d22510e5d183e94 to your computer and use it in GitHub Desktop.
frontend stats
bind 127.0.0.1:10001
mode http
use_backend stats
frontend kube_80
bind 0.0.0.0:80
mode tcp
option tcplog
use_backend kube_80
frontend kube_443
bind 0.0.0.0:443
mode tcp
option tcplog
use_backend kube_443
backend stats
stats enable
stats uri /stats/
stats admin if TRUE
acl is-root path /
http-request redirect location /stats/ code 303 if is-root
backend kube_80
mode tcp
option allbackups
server master-80 10.0.0.0:80 check send-proxy
backend kube_443
mode tcp
server master-443 10.0.0.0:443 check send-proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment