added healthz endpoint to filer (#4899)

This commit is contained in:
Yuval Yacoby
2023-10-08 17:03:18 +03:00
committed by GitHub
parent 082f67bfe9
commit 3fe00996b2
2 changed files with 6 additions and 0 deletions

View File

@@ -157,6 +157,7 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
handleStaticResources(defaultMux)
if !option.DisableHttp {
defaultMux.HandleFunc("/healthz", fs.filerHealthzHandler)
defaultMux.HandleFunc("/", fs.filerHandler)
}
if defaultMux != readonlyMux {