From f719e24fde3f054a4d664150f55d64a1e10519a7 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Thu, 23 May 2024 18:04:50 -0400 Subject: cmd/mi: fix? Signed-off-by: Xe Iaso --- cmd/mi/main.go | 2 +- cmd/mi/manifest.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/mi') diff --git a/cmd/mi/main.go b/cmd/mi/main.go index 835ba85..aa36127 100644 --- a/cmd/mi/main.go +++ b/cmd/mi/main.go @@ -68,7 +68,7 @@ func main() { i := &Importer{db: dao.DB()} i.Mount(http.DefaultServeMux) - http.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) { if err := dao.Ping(r.Context()); err != nil { slog.Error("database not healthy", "err", err) http.Error(w, "database not healthy", http.StatusInternalServerError) diff --git a/cmd/mi/manifest.yaml b/cmd/mi/manifest.yaml index 310d698..948881f 100644 --- a/cmd/mi/manifest.yaml +++ b/cmd/mi/manifest.yaml @@ -103,7 +103,7 @@ spec: livenessProbe: httpGet: path: /healthz - port: 9195 + port: 8080 httpHeaders: - name: X-Kubernetes value: "is kinda okay" -- cgit v1.2.3