更新 scripts/keepalived.sh

This commit is contained in:
joy 2025-10-29 20:28:20 +08:00
parent 58a361d6e6
commit ecebe67829
1 changed files with 2 additions and 1 deletions

View File

@ -113,12 +113,13 @@ EOF
cat > "$KEEPALIVED_CONF" << EOF
global_defs {
router_id LVS_K8S_$(hostname)
script_security 2
}
vrrp_script check_haproxy {
script "$CHECK_SCRIPT"
interval 2
weight -20
weight -5
}
vrrp_instance VI_1 {