diff --git a/pkg/proxy/healthcheck/service_health.go b/pkg/proxy/healthcheck/service_health.go index d96f2fec59c..bb62bf607ae 100644 --- a/pkg/proxy/healthcheck/service_health.go +++ b/pkg/proxy/healthcheck/service_health.go @@ -235,8 +235,8 @@ func (h hcHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request) { return } count := svc.endpoints - kubeProxyHealthy := h.hcs.healthzServer.IsHealthy() h.hcs.lock.RUnlock() + kubeProxyHealthy := h.hcs.healthzServer.IsHealthy() resp.Header().Set("Content-Type", "application/json") resp.Header().Set("X-Content-Type-Options", "nosniff")