From 6dfc78ea24e28b2f10296f04304ff492d6de0b4e Mon Sep 17 00:00:00 2001 From: Pranshu Srivastava Date: Thu, 13 Jun 2024 17:25:10 +0530 Subject: [PATCH] fixup! enhancement: add `livez` endpoint --- pkg/app/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app/server.go b/pkg/app/server.go index 2e4a247eb6..ae5678ee58 100644 --- a/pkg/app/server.go +++ b/pkg/app/server.go @@ -409,7 +409,7 @@ func buildMetricsServer(m *metricshandler.MetricsHandler, durationObserver prome mux.Handle(livezPath, http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { // Query the Kube API to make sure we are not affected by a network outage. - got := client.CoreV1().RESTClient().Get().AbsPath("/apis/").Do(context.Background()) + got := client.CoreV1().RESTClient().Get().AbsPath("/livez").Do(context.Background()) if got.Error() != nil { w.WriteHeader(http.StatusServiceUnavailable) w.Write([]byte(http.StatusText(http.StatusServiceUnavailable)))