Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (25 sloc) 491 Bytes
global_defs {
router_id kubernetes
}
vrrp_script Checkhaproxy {
script "/etc/keepalived/check_haproxy.sh"
interval 3
weight -25
}
vrrp_instance VI_1 {
state {{ lb }}
interface {{ ansible_default_ipv4.interface }}
virtual_router_id 100
priority {{ priority }}
advert_int 1
authentication {
auth_type PASS
auth_pass kubernetes
}
virtual_ipaddress {
{{ vip }}
}
track_script {
Checkhaproxy
}
}