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