summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-28 12:26:32 +0200
committerPaul Buetow <paul@buetow.org>2026-03-28 12:26:32 +0200
commitd839077ef4218575608589f2746e4feb4a36a4df (patch)
treeb7287279fb6243e76118fe5fcbe3b3aa44bfaf79
parentfe718ba200e0b64efad6478f56fc56103f45a574 (diff)
pkgrepo: fix health probe path to /healthz
The root path returns 404 by design, so probes need a dedicated /healthz endpoint that returns 200. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
-rw-r--r--f3s/pkgrepo/helm-chart/templates/configmap-nginx.yaml5
-rw-r--r--f3s/pkgrepo/helm-chart/templates/deployment.yaml4
2 files changed, 7 insertions, 2 deletions
diff --git a/f3s/pkgrepo/helm-chart/templates/configmap-nginx.yaml b/f3s/pkgrepo/helm-chart/templates/configmap-nginx.yaml
index 61325ce..e575401 100644
--- a/f3s/pkgrepo/helm-chart/templates/configmap-nginx.yaml
+++ b/f3s/pkgrepo/helm-chart/templates/configmap-nginx.yaml
@@ -29,6 +29,11 @@ data:
autoindex on;
}
+ # Health check endpoint for k8s probes
+ location = /healthz {
+ return 200 "ok";
+ }
+
location / {
return 404;
}
diff --git a/f3s/pkgrepo/helm-chart/templates/deployment.yaml b/f3s/pkgrepo/helm-chart/templates/deployment.yaml
index 24d157c..4332546 100644
--- a/f3s/pkgrepo/helm-chart/templates/deployment.yaml
+++ b/f3s/pkgrepo/helm-chart/templates/deployment.yaml
@@ -23,7 +23,7 @@ spec:
# Liveness probe: restart if nginx stops responding
livenessProbe:
httpGet:
- path: /
+ path: /healthz
port: 8080
periodSeconds: 30
timeoutSeconds: 5
@@ -31,7 +31,7 @@ spec:
# Readiness probe: remove from service if not ready
readinessProbe:
httpGet:
- path: /
+ path: /healthz
port: 8080
periodSeconds: 10
timeoutSeconds: 3