From 4eb923dc1510fa5bc08fd9367749ef35bad2cf7d Mon Sep 17 00:00:00 2001 From: alecsandru Date: Fri, 3 May 2024 19:01:52 +0000 Subject: [PATCH] Update 'haproxy.yml' --- haproxy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/haproxy.yml b/haproxy.yml index 6ca8b6b..de33a80 100644 --- a/haproxy.yml +++ b/haproxy.yml @@ -48,3 +48,26 @@ script "/usr/bin/nc localhost 6443" interval 5 } + vrrp_script chk_haproxy { + script "pidof haproxy" + interval 2 + } + vrrp_instance VI_2 { + state MASTER + interface eth0 + virtual_router_id 101 + priority 100 + advert_int 1 + authentication { + auth_type PASS + auth_pass 2222 + } + virtual_ipaddress { + 10.10.0.3 + } + track_script { + chk_haproxy + } + } + +