mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Merge pull request #75214 from deads2k/health
provide verbose output when health check fails
This commit is contained in:
@@ -181,6 +181,7 @@ func handleRootHealthz(checks ...HealthzChecker) http.HandlerFunc {
|
|||||||
}
|
}
|
||||||
// always be verbose on failure
|
// always be verbose on failure
|
||||||
if failed {
|
if failed {
|
||||||
|
klog.V(2).Infof("%vhealthz check failed", verboseOut.String())
|
||||||
http.Error(w, fmt.Sprintf("%vhealthz check failed", verboseOut.String()), http.StatusInternalServerError)
|
http.Error(w, fmt.Sprintf("%vhealthz check failed", verboseOut.String()), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user