36 lines
562 B
Plaintext
36 lines
562 B
Plaintext
global_defs {
|
|
script_user root
|
|
enable_script_security
|
|
}
|
|
|
|
vrrp_script check {
|
|
script "killall -0 kube-apiserver"
|
|
interval 2
|
|
weight -20
|
|
}
|
|
|
|
vrrp_instance VI_1 {
|
|
state BACKUP
|
|
interface __NETWORK_NIC__
|
|
virtual_router_id 251
|
|
priority 98
|
|
nopreempt
|
|
|
|
authentication {
|
|
auth_type PASS
|
|
auth_pass 123456
|
|
}
|
|
track_script {
|
|
check
|
|
}
|
|
unicast_src_ip __MASTER3__
|
|
unicast_peer {
|
|
__MASTER1__
|
|
__MASTER2__
|
|
}
|
|
virtual_ipaddress {
|
|
__VIP__ dev __NETWORK_NIC__
|
|
}
|
|
}
|
|
|