@ -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