From 4885e1749fdee3ea87ef514e4f4270085512f7e0 Mon Sep 17 00:00:00 2001 From: Flavio Crisciani Date: Sun, 11 Jun 2017 23:12:01 -0700 Subject: [PATCH] IPVS fix In accordance with the logic for SD, remove the ipvs rules only when there is no more endpoints using the IP Signed-off-by: Flavio Crisciani --- service_common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_common.go b/service_common.go index c8ed346384..7d934755de 100644 --- a/service_common.go +++ b/service_common.go @@ -342,7 +342,7 @@ func (c *controller) rmServiceBinding(svcName, svcID, nID, eID, containerName st // Remove loadbalancer service(if needed) and backend in all // sandboxes in the network only if the vip is valid. - if len(vip) != 0 { + if len(vip) != 0 && entries == 0 { n.(*network).rmLBBackend(ip, vip, lb.fwMark, ingressPorts, rmService) }