Update 'haproxy.yml'

master
alecsandru 9 months ago
parent cdfdda7304
commit 8d0d52905a
  1. 12
      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 {

Loading…
Cancel
Save