Skip to content

Commit 880baa9

Browse files
author
Antonio Ojea
committed
kube-proxy: log stale services operations
1 parent 722be66 commit 880baa9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/proxy/iptables/proxier.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,11 +1625,13 @@ func (proxier *Proxier) syncProxyRules() {
16251625

16261626
// Finish housekeeping.
16271627
// TODO: these could be made more consistent.
1628+
klog.V(4).Infof("Deleting stale services IPs: %v", staleServices.UnsortedList())
16281629
for _, svcIP := range staleServices.UnsortedList() {
16291630
if err := conntrack.ClearEntriesForIP(proxier.exec, svcIP, v1.ProtocolUDP); err != nil {
16301631
klog.Errorf("Failed to delete stale service IP %s connections, error: %v", svcIP, err)
16311632
}
16321633
}
1634+
klog.V(4).Infof("Deleting stale endpoint connections: %v", endpointUpdateResult.StaleEndpoints)
16331635
proxier.deleteEndpointConnections(endpointUpdateResult.StaleEndpoints)
16341636
}
16351637

0 commit comments

Comments
 (0)