From ecebe678299538ba93981a4b85a85d6dbfe6b710 Mon Sep 17 00:00:00 2001 From: joy Date: Wed, 29 Oct 2025 20:28:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20scripts/keepalived.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/keepalived.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/keepalived.sh b/scripts/keepalived.sh index 160c8f7..edbe190 100644 --- a/scripts/keepalived.sh +++ b/scripts/keepalived.sh @@ -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 {