2023-04-26 20:09:46 +08:00
|
|
|
global_defs {
|
2023-09-13 10:45:29 +08:00
|
|
|
script_user root
|
|
|
|
enable_script_security
|
2023-04-26 20:09:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
vrrp_script check {
|
2023-09-13 10:45:29 +08:00
|
|
|
script "killall -0 kube-apiserver"
|
|
|
|
interval 2
|
|
|
|
weight -20
|
2023-04-26 20:09:46 +08:00
|
|
|
}
|
|
|
|
|
2023-09-13 10:45:29 +08:00
|
|
|
vrrp_instance VI_1 {
|
|
|
|
state BACKUP
|
|
|
|
interface __NETWORK_NIC__
|
|
|
|
virtual_router_id 251
|
2023-04-26 20:09:46 +08:00
|
|
|
priority 98
|
2023-09-13 10:45:29 +08:00
|
|
|
nopreempt
|
2023-04-26 20:09:46 +08:00
|
|
|
|
|
|
|
authentication {
|
2023-09-13 10:45:29 +08:00
|
|
|
auth_type PASS
|
2023-04-26 20:09:46 +08:00
|
|
|
auth_pass 123456
|
|
|
|
}
|
|
|
|
track_script {
|
|
|
|
check
|
|
|
|
}
|
2023-09-12 17:20:40 +08:00
|
|
|
unicast_src_ip __MASTER3__
|
2023-04-26 20:09:46 +08:00
|
|
|
unicast_peer {
|
2023-09-12 17:20:40 +08:00
|
|
|
__MASTER1__
|
|
|
|
__MASTER2__
|
2023-04-26 20:09:46 +08:00
|
|
|
}
|
|
|
|
virtual_ipaddress {
|
2023-09-13 10:45:29 +08:00
|
|
|
__VIP__ dev __NETWORK_NIC__
|
2023-04-26 20:09:46 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|