diff --git a/ingress/templates/bin/_ingress-controller.sh.tpl b/ingress/templates/bin/_ingress-controller.sh.tpl index a484e98d0..3ba28d6c8 100644 --- a/ingress/templates/bin/_ingress-controller.sh.tpl +++ b/ingress/templates/bin/_ingress-controller.sh.tpl @@ -40,6 +40,7 @@ function start () { } function stop () { + sleep 5 kill -TERM 1 } diff --git a/ingress/templates/bin/_ingress-vip-routed.sh.tpl b/ingress/templates/bin/_ingress-vip-routed.sh.tpl index 3df0053ef..35b5d6cc0 100644 --- a/ingress/templates/bin/_ingress-vip-routed.sh.tpl +++ b/ingress/templates/bin/_ingress-vip-routed.sh.tpl @@ -35,6 +35,11 @@ function start () { ip addr add ${addr} dev ${interface} fi ip link set ${interface} up + garp_interface=$(ip route list match "${addr}" scope link | \ + awk '$2 == "dev" { print $3; exit }') + if [ -n "${garp_interface}" ]; then + arping -U -c 3 -I "${garp_interface}" "${addr%/*}" || true + fi } function sleep () {