aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-02-16 14:18:36 +0500
committerKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-02-16 14:18:36 +0500
commit9ea09cc41ca90ba57b9ba304ab5e5e879eff82fd (patch)
tree4729def8af1ec83151e9bfff52c607c22bed6b10 /weed/server/volume_server.go
parentb394380a36c3ae8c2764a9d181dbe01cff86b71e (diff)
downloadseaweedfs-9ea09cc41ca90ba57b9ba304ab5e5e879eff82fd.tar.xz
seaweedfs-9ea09cc41ca90ba57b9ba304ab5e5e879eff82fd.zip
healthz check to avoid drain pod with last replicas
Diffstat (limited to 'weed/server/volume_server.go')
-rw-r--r--weed/server/volume_server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index 2551cc6e6..4199ae36b 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -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)