Update 'haproxy.yml'

This commit is contained in:
2024-05-03 19:09:45 +00:00
parent 4eb923dc15
commit cdfdda7304

View File

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