kube-proxy: log service and endpoint updates

This commit is contained in:
Tim Hockin
2020-04-09 13:56:34 -07:00
parent 37da906db2
commit 341022f8d1
4 changed files with 29 additions and 16 deletions

View File

@@ -176,6 +176,10 @@ func (ect *EndpointChangeTracker) Update(previous, current *v1.Endpoints) bool {
// there will be no network programming for them and thus no network programming latency metric
// should be exported.
delete(ect.lastChangeTriggerTimes, namespacedName)
} else {
for spn, eps := range change.current {
klog.V(2).Infof("Service port %s updated: %d endpoints", spn, len(eps))
}
}
metrics.EndpointChangesPending.Set(float64(len(ect.items)))