aboutsummaryrefslogtreecommitdiff
path: root/cmd/mi
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-05-23 18:04:50 -0400
committerXe Iaso <me@xeiaso.net>2024-05-23 18:04:50 -0400
commitf719e24fde3f054a4d664150f55d64a1e10519a7 (patch)
tree64f441247706510221bfef5f9bfb98e8d8e2888e /cmd/mi
parent21ba75567eca66b73dc3d4641ab4d5808362bc37 (diff)
downloadx-f719e24fde3f054a4d664150f55d64a1e10519a7.tar.xz
x-f719e24fde3f054a4d664150f55d64a1e10519a7.zip
cmd/mi: fix?
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/mi')
-rw-r--r--cmd/mi/main.go2
-rw-r--r--cmd/mi/manifest.yaml2
2 files changed, 2 insertions, 2 deletions
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"