health: stabilize wger startup
This commit is contained in:
parent
0733127039
commit
3af97973e0
@ -5,11 +5,11 @@ upstream wger {
|
|||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
|
|
||||||
client_body_temp_path /tmp/nginx/client_body 1 2;
|
client_body_temp_path /tmp/client_body 1 2;
|
||||||
proxy_temp_path /tmp/nginx/proxy 1 2;
|
proxy_temp_path /tmp/proxy 1 2;
|
||||||
fastcgi_temp_path /tmp/nginx/fastcgi 1 2;
|
fastcgi_temp_path /tmp/fastcgi 1 2;
|
||||||
uwsgi_temp_path /tmp/nginx/uwsgi 1 2;
|
uwsgi_temp_path /tmp/uwsgi 1 2;
|
||||||
scgi_temp_path /tmp/nginx/scgi 1 2;
|
scgi_temp_path /tmp/scgi 1 2;
|
||||||
|
|
||||||
location = /api/v2/register {
|
location = /api/v2/register {
|
||||||
return 404;
|
return 404;
|
||||||
|
|||||||
@ -155,6 +155,13 @@ spec:
|
|||||||
mountPath: /home/wger/static
|
mountPath: /home/wger/static
|
||||||
- name: wger-media
|
- name: wger-media
|
||||||
mountPath: /home/wger/media
|
mountPath: /home/wger/media
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /api/v2/version/
|
||||||
|
port: app
|
||||||
|
failureThreshold: 60
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 3
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /api/v2/version/
|
path: /api/v2/version/
|
||||||
@ -196,6 +203,13 @@ spec:
|
|||||||
mountPath: /wger/static
|
mountPath: /wger/static
|
||||||
- name: wger-media
|
- name: wger-media
|
||||||
mountPath: /wger/media
|
mountPath: /wger/media
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /api/v2/version/
|
||||||
|
port: http
|
||||||
|
failureThreshold: 60
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 3
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /api/v2/version/
|
path: /api/v2/version/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user