更新 scripts/keepalived.sh

q12
This commit is contained in:
joy 2025-10-29 20:30:42 +08:00
parent ecebe67829
commit 26d3bdaff1
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,8 @@ 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 script_security 2
enable_script_security
} }
vrrp_script check_haproxy { vrrp_script check_haproxy {