Update 'haproxy.yml'

master
alecsandru 9 months ago
parent f9b59633a9
commit 4eb923dc15
  1. 23
      haproxy.yml

@ -48,3 +48,26 @@
script "/usr/bin/nc localhost 6443" script "/usr/bin/nc localhost 6443"
interval 5 interval 5
} }
vrrp_script chk_haproxy {
script "pidof haproxy"
interval 2
}
vrrp_instance VI_2 {
state MASTER
interface eth0
virtual_router_id 101
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 2222
}
virtual_ipaddress {
10.10.0.3
}
track_script {
chk_haproxy
}
}

Loading…
Cancel
Save