From 3af97973e04acfcf75688139a5b9a4533b872481 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Wed, 14 Jan 2026 23:26:07 -0300 Subject: [PATCH] health: stabilize wger startup --- services/health/config/nginx.conf | 10 +++++----- services/health/wger-deployment.yaml | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/services/health/config/nginx.conf b/services/health/config/nginx.conf index 8508c38..b1ee8d4 100644 --- a/services/health/config/nginx.conf +++ b/services/health/config/nginx.conf @@ -5,11 +5,11 @@ upstream wger { server { listen 8080; - client_body_temp_path /tmp/nginx/client_body 1 2; - proxy_temp_path /tmp/nginx/proxy 1 2; - fastcgi_temp_path /tmp/nginx/fastcgi 1 2; - uwsgi_temp_path /tmp/nginx/uwsgi 1 2; - scgi_temp_path /tmp/nginx/scgi 1 2; + client_body_temp_path /tmp/client_body 1 2; + proxy_temp_path /tmp/proxy 1 2; + fastcgi_temp_path /tmp/fastcgi 1 2; + uwsgi_temp_path /tmp/uwsgi 1 2; + scgi_temp_path /tmp/scgi 1 2; location = /api/v2/register { return 404; diff --git a/services/health/wger-deployment.yaml b/services/health/wger-deployment.yaml index 1664904..f372344 100644 --- a/services/health/wger-deployment.yaml +++ b/services/health/wger-deployment.yaml @@ -155,6 +155,13 @@ spec: mountPath: /home/wger/static - name: wger-media mountPath: /home/wger/media + startupProbe: + httpGet: + path: /api/v2/version/ + port: app + failureThreshold: 60 + periodSeconds: 10 + timeoutSeconds: 3 readinessProbe: httpGet: path: /api/v2/version/ @@ -196,6 +203,13 @@ spec: mountPath: /wger/static - name: wger-media mountPath: /wger/media + startupProbe: + httpGet: + path: /api/v2/version/ + port: http + failureThreshold: 60 + periodSeconds: 10 + timeoutSeconds: 3 readinessProbe: httpGet: path: /api/v2/version/