mirror of
https://github.com/minio/minio
synced 2024-09-06 00:37:25 +00:00
add HEAD for cluster healthcheck (#12140)
fixes #12130 Signed-off-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
parent
82dc6aff1c
commit
25d3c73162
|
@ -40,7 +40,9 @@ func registerHealthCheckRouter(router *mux.Router) {
|
|||
|
||||
// Cluster check handler to verify cluster is active
|
||||
healthRouter.Methods(http.MethodGet).Path(healthCheckClusterPath).HandlerFunc(httpTraceAll(ClusterCheckHandler))
|
||||
healthRouter.Methods(http.MethodHead).Path(healthCheckClusterPath).HandlerFunc(httpTraceAll(ClusterCheckHandler))
|
||||
healthRouter.Methods(http.MethodGet).Path(healthCheckClusterReadPath).HandlerFunc(httpTraceAll(ClusterReadCheckHandler))
|
||||
healthRouter.Methods(http.MethodHead).Path(healthCheckClusterReadPath).HandlerFunc(httpTraceAll(ClusterReadCheckHandler))
|
||||
|
||||
// Liveness handler
|
||||
healthRouter.Methods(http.MethodGet).Path(healthCheckLivenessPath).HandlerFunc(httpTraceAll(LivenessCheckHandler))
|
||||
|
|
Loading…
Reference in a new issue