offline-kubernetes-install/keepalived/keepalived1.conf
2024-01-30 10:26:56 +08:00

63 lines
1.2 KiB
Plaintext

global_defs {
router_id LVS_APISERVER
}
vrrp_instance VI_1 {
state BACKUP
nopreempt
interface __NETWORK_NIC__
virtual_router_id 80
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass LVS_APISERVER
}
virtual_ipaddress {
__VIP__
}
}
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
}
}
}