Use exec probe for health checks instead of HTTP probe

The /api/health endpoint returns 403 when accessed externally but works from localhost. Changed readiness and liveness probes to use exec with wget from inside the container to work around this restriction.

Resolves: DEV-387

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
CTO Agent 2026-07-26 10:07:16 +00:00
parent c0aecf125a
commit c0dd78d172

View file

@ -84,18 +84,28 @@ spec:
- name: data
mountPath: /paperclip
readinessProbe:
httpGet:
path: /api/health
port: 3100
exec:
command:
- wget
- --quiet
- --tries=1
- --timeout=3
- --spider
- http://localhost:3100/api/health
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
livenessProbe:
httpGet:
path: /api/health
port: 3100
exec:
command:
- wget
- --quiet
- --tries=1
- --timeout=3
- --spider
- http://localhost:3100/api/health
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5