diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-28 12:26:32 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-28 12:26:32 +0200 |
| commit | d839077ef4218575608589f2746e4feb4a36a4df (patch) | |
| tree | b7287279fb6243e76118fe5fcbe3b3aa44bfaf79 | |
| parent | fe718ba200e0b64efad6478f56fc56103f45a574 (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.yaml | 5 | ||||
| -rw-r--r-- | f3s/pkgrepo/helm-chart/templates/deployment.yaml | 4 |
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 |
