healthz check to avoid drain pod with last replicas

This commit is contained in:
Konstantin Lebedev
2022-02-16 14:18:36 +05:00
parent b394380a36
commit 9ea09cc41c
3 changed files with 23 additions and 3 deletions

View File

@@ -98,6 +98,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
handleStaticResources(adminMux)
adminMux.HandleFunc("/status", vs.statusHandler)
adminMux.HandleFunc("/healthz", vs.healthzHandler)
if signingKey == "" || enableUiAccess {
// only expose the volume server details for safe environments
adminMux.HandleFunc("/ui/index.html", vs.uiStatusHandler)