Update 'haproxy.yml'

master
alecsandru 9 months ago
parent cdfdda7304
commit 8d0d52905a
  1. 12
      haproxy.yml

@ -30,6 +30,10 @@
blockinfile: blockinfile:
dest: /etc/keepalived/keepalived.conf dest: /etc/keepalived/keepalived.conf
block: | block: |
vrrp_script chk_apiserver {
script "/usr/bin/nc localhost 6443"
interval 5
}
vrrp_instance VI_1 { vrrp_instance VI_1 {
state MASTER state MASTER
interface eth0 interface eth0
@ -47,18 +51,14 @@
chk_apiserver chk_apiserver
} }
} }
vrrp_script chk_apiserver {
script "/usr/bin/nc localhost 6443"
interval 5
}
vrrp_script chk_haproxy { vrrp_script chk_haproxy {
script "pidof haproxy" script "/usr/bin/pidof haproxy"
interval 2 interval 2
} }
vrrp_instance VI_2 { vrrp_instance VI_2 {
state MASTER state MASTER
interface eth0 interface eth0
virtual_router_id 101 virtual_router_id 102
priority 100 priority 100
advert_int 1 advert_int 1
authentication { authentication {

Loading…
Cancel
Save