feature: enable admin mode and customize peer name

This commit is contained in:
RouxAntoine 2023-07-25 23:33:49 +02:00
parent d5a552cef4
commit 58cd131a32
Signed by: antoine
GPG Key ID: 098FB66FC0475E70
1 changed files with 4 additions and 3 deletions

View File

@ -25,6 +25,7 @@ listen stats
stats uri /stats
stats refresh 30s
stats realm Haproxy\ Statistics
stats admin if TRUE
stats auth admin:$ADMIN_PASSWORD
frontend k8s-https
@ -40,6 +41,6 @@ listen stats
mode tcp
option tcp-check
default-server inter 10s downinter 5s rise 2 fall 2 slowstart 60s maxconn 250 maxqueue 256 weight 100
server peer-0 $PEER_0 check
server peer-1 $PEER_1 check
server peer-2 $PEER_2 check
server $PEER_0_NAME $PEER_0 check
server $PEER_1_NAME $PEER_1 check
server $PEER_2_NAME $PEER_2 check