From cdfdda7304651d532090731fd0cdc355f5c6f754 Mon Sep 17 00:00:00 2001 From: alecsandru Date: Fri, 3 May 2024 19:09:45 +0000 Subject: [PATCH] Update 'haproxy.yml' --- haproxy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/haproxy.yml b/haproxy.yml index de33a80..14bd045 100644 --- a/haproxy.yml +++ b/haproxy.yml @@ -43,6 +43,9 @@ virtual_ipaddress { 10.10.0.2 } + track_script { + chk_apiserver + } } vrrp_script chk_apiserver { script "/usr/bin/nc localhost 6443" @@ -69,5 +72,8 @@ chk_haproxy } } - + - name: restart keepalived + service: + name: keepalived + state: restarted