2023-04-26 20:09:46 +08:00
|
|
|
global_defs {
|
2024-01-30 10:26:56 +08:00
|
|
|
router_id LVS_APISERVER
|
2023-04-26 20:09:46 +08:00
|
|
|
}
|
2024-01-30 10:26:56 +08:00
|
|
|
vrrp_instance VI_1 {
|
|
|
|
state BACKUP
|
|
|
|
nopreempt
|
2023-09-13 10:45:29 +08:00
|
|
|
interface __NETWORK_NIC__
|
2024-01-30 10:26:56 +08:00
|
|
|
virtual_router_id 80
|
|
|
|
priority 100
|
|
|
|
advert_int 1
|
2023-04-26 20:09:46 +08:00
|
|
|
authentication {
|
2024-01-30 10:26:56 +08:00
|
|
|
auth_type PASS
|
|
|
|
auth_pass LVS_APISERVER
|
2023-04-26 20:09:46 +08:00
|
|
|
}
|
|
|
|
virtual_ipaddress {
|
2024-01-30 10:26:56 +08:00
|
|
|
__VIP__
|
2023-04-26 20:09:46 +08:00
|
|
|
}
|
|
|
|
}
|
2024-01-30 10:26:56 +08:00
|
|
|
virtual_server __VIP__ 6443 {
|
|
|
|
delay_loop 6
|
|
|
|
lb_algo loadbalance
|
|
|
|
lb_kind DR
|
|
|
|
net_mask 255.255.255.0
|
|
|
|
persistence_timeout 0
|
|
|
|
protocol TCP
|
|
|
|
real_server __MASTER1__ 6443 {
|
|
|
|
weight 1
|
|
|
|
SSL_GET {
|
|
|
|
url {
|
|
|
|
path /healthz
|
|
|
|
status_code 200
|
|
|
|
}
|
|
|
|
connect_timeout 3
|
|
|
|
nb_get_retry 3
|
|
|
|
delay_before_retry 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
real_server __MASTER2__ 6443 {
|
|
|
|
weight 1
|
|
|
|
SSL_GET {
|
|
|
|
url {
|
|
|
|
path /healthz
|
|
|
|
status_code 200
|
|
|
|
}
|
|
|
|
connect_timeout 3
|
|
|
|
nb_get_retry 3
|
|
|
|
delay_before_retry 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
real_server __MASTER3__ 6443 {
|
|
|
|
weight 1
|
|
|
|
SSL_GET {
|
|
|
|
url {
|
|
|
|
path /healthz
|
|
|
|
status_code 200
|
|
|
|
}
|
|
|
|
connect_timeout 3
|
|
|
|
nb_get_retry 3
|
|
|
|
delay_before_retry 3
|
|
|
|
}
|
|
|
|
}
|
2023-04-26 20:09:46 +08:00
|
|
|
|
2024-01-30 10:26:56 +08:00
|
|
|
}
|