diff --git a/charts/restarters/templates/deployment.yaml b/charts/restarters/templates/deployment.yaml index 77fda9c99a..ca1a9f65b1 100644 --- a/charts/restarters/templates/deployment.yaml +++ b/charts/restarters/templates/deployment.yaml @@ -153,21 +153,21 @@ spec: {{- end }} livenessProbe: httpGet: - path: /healthz + path: /nginx-health port: http scheme: HTTP - initialDelaySeconds: 60 + initialDelaySeconds: 10 periodSeconds: 30 - timeoutSeconds: 10 + timeoutSeconds: 5 failureThreshold: 3 readinessProbe: httpGet: - path: /healthz + path: /nginx-health port: http scheme: HTTP - initialDelaySeconds: 45 + initialDelaySeconds: 5 periodSeconds: 10 - timeoutSeconds: 10 + timeoutSeconds: 5 failureThreshold: 3 {{- end }} diff --git a/charts/restarters/templates/nginx-config.yaml b/charts/restarters/templates/nginx-config.yaml index 0414fd0fb2..43ad33cd5b 100644 --- a/charts/restarters/templates/nginx-config.yaml +++ b/charts/restarters/templates/nginx-config.yaml @@ -29,6 +29,13 @@ data: gzip_proxied expired no-cache no-store private auth; gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml+rss; + # Nginx-only health check endpoint (no PHP-FPM dependency) + location /nginx-health { + access_log off; + return 200 "nginx ok\n"; + add_header Content-Type text/plain; + } + # Handle Laravel routes (including /healthz) location / { try_files $uri $uri/ @php;