From 8d0d52905ae9bc167af0661aae37e7411135692a Mon Sep 17 00:00:00 2001 From: alecsandru Date: Fri, 3 May 2024 19:13:26 +0000 Subject: [PATCH] Update 'haproxy.yml' --- haproxy.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/haproxy.yml b/haproxy.yml index 14bd045..f3c7ce6 100644 --- a/haproxy.yml +++ b/haproxy.yml @@ -30,6 +30,10 @@ blockinfile: dest: /etc/keepalived/keepalived.conf block: | + vrrp_script chk_apiserver { + script "/usr/bin/nc localhost 6443" + interval 5 + } vrrp_instance VI_1 { state MASTER interface eth0 @@ -47,18 +51,14 @@ chk_apiserver } } - vrrp_script chk_apiserver { - script "/usr/bin/nc localhost 6443" - interval 5 - } vrrp_script chk_haproxy { - script "pidof haproxy" + script "/usr/bin/pidof haproxy" interval 2 } vrrp_instance VI_2 { state MASTER interface eth0 - virtual_router_id 101 + virtual_router_id 102 priority 100 advert_int 1 authentication {