diff options
Diffstat (limited to 'f3s')
| -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 |
