更新 scripts/keepalived.sh
This commit is contained in:
parent
58a361d6e6
commit
ecebe67829
|
|
@ -113,12 +113,13 @@ EOF
|
||||||
cat > "$KEEPALIVED_CONF" << EOF
|
cat > "$KEEPALIVED_CONF" << EOF
|
||||||
global_defs {
|
global_defs {
|
||||||
router_id LVS_K8S_$(hostname)
|
router_id LVS_K8S_$(hostname)
|
||||||
|
script_security 2
|
||||||
}
|
}
|
||||||
|
|
||||||
vrrp_script check_haproxy {
|
vrrp_script check_haproxy {
|
||||||
script "$CHECK_SCRIPT"
|
script "$CHECK_SCRIPT"
|
||||||
interval 2
|
interval 2
|
||||||
weight -20
|
weight -5
|
||||||
}
|
}
|
||||||
|
|
||||||
vrrp_instance VI_1 {
|
vrrp_instance VI_1 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue