mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
Merge pull request #117969 from daman1807/fix/proxy-health-check
Release read lock early in proxy service health check
This commit is contained in:
commit
c056c36e23
@ -235,8 +235,8 @@ func (h hcHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
count := svc.endpoints
|
count := svc.endpoints
|
||||||
kubeProxyHealthy := h.hcs.healthzServer.IsHealthy()
|
|
||||||
h.hcs.lock.RUnlock()
|
h.hcs.lock.RUnlock()
|
||||||
|
kubeProxyHealthy := h.hcs.healthzServer.IsHealthy()
|
||||||
|
|
||||||
resp.Header().Set("Content-Type", "application/json")
|
resp.Header().Set("Content-Type", "application/json")
|
||||||
resp.Header().Set("X-Content-Type-Options", "nosniff")
|
resp.Header().Set("X-Content-Type-Options", "nosniff")
|
||||||
|
Loading…
Reference in New Issue
Block a user