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 {