From fd4fbef519da415d6bb76e69a401e94043013386 Mon Sep 17 00:00:00 2001 From: Dawn Chen Date: Thu, 9 Apr 2015 15:52:27 -0700 Subject: [PATCH] Install /healthz to kube-scheduler --- plugin/cmd/kube-scheduler/app/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/cmd/kube-scheduler/app/server.go b/plugin/cmd/kube-scheduler/app/server.go index 713a5d8a678..1cdc1f6cd7f 100644 --- a/plugin/cmd/kube-scheduler/app/server.go +++ b/plugin/cmd/kube-scheduler/app/server.go @@ -29,6 +29,7 @@ import ( "github.com/GoogleCloudPlatform/kubernetes/pkg/api" "github.com/GoogleCloudPlatform/kubernetes/pkg/client" "github.com/GoogleCloudPlatform/kubernetes/pkg/client/record" + "github.com/GoogleCloudPlatform/kubernetes/pkg/healthz" "github.com/GoogleCloudPlatform/kubernetes/pkg/master/ports" "github.com/GoogleCloudPlatform/kubernetes/pkg/util" "github.com/GoogleCloudPlatform/kubernetes/plugin/pkg/scheduler" @@ -81,6 +82,7 @@ func (s *SchedulerServer) Run(_ []string) error { go func() { mux := http.NewServeMux() + healthz.InstallHandler(mux) if s.EnableProfiling { mux.HandleFunc("/debug/pprof/", pprof.Index) mux.HandleFunc("/debug/pprof/profile", pprof.Profile)