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:
parent
c0aecf125a
commit
c0dd78d172
1 changed files with 16 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue