From 880baa9f6f040b622babfb7da7cc20726bd652a9 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Mon, 19 Oct 2020 09:35:34 +0200 Subject: [PATCH] kube-proxy: log stale services operations --- pkg/proxy/iptables/proxier.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/proxy/iptables/proxier.go b/pkg/proxy/iptables/proxier.go index 5e618e12918..3af1bc836e3 100644 --- a/pkg/proxy/iptables/proxier.go +++ b/pkg/proxy/iptables/proxier.go @@ -1625,11 +1625,13 @@ func (proxier *Proxier) syncProxyRules() { // Finish housekeeping. // TODO: these could be made more consistent. + klog.V(4).Infof("Deleting stale services IPs: %v", staleServices.UnsortedList()) for _, svcIP := range staleServices.UnsortedList() { if err := conntrack.ClearEntriesForIP(proxier.exec, svcIP, v1.ProtocolUDP); err != nil { klog.Errorf("Failed to delete stale service IP %s connections, error: %v", svcIP, err) } } + klog.V(4).Infof("Deleting stale endpoint connections: %v", endpointUpdateResult.StaleEndpoints) proxier.deleteEndpointConnections(endpointUpdateResult.StaleEndpoints) }