health(wger): replace expensive application probes
This commit is contained in:
parent
435e258e45
commit
e22e4793bb
@ -22,6 +22,10 @@ spec:
|
||||
annotations:
|
||||
vault.hashicorp.com/agent-inject: "true"
|
||||
vault.hashicorp.com/role: "health"
|
||||
vault.hashicorp.com/agent-requests-cpu: "25m"
|
||||
vault.hashicorp.com/agent-requests-mem: "64Mi"
|
||||
vault.hashicorp.com/agent-limits-cpu: "100m"
|
||||
vault.hashicorp.com/agent-limits-mem: "128Mi"
|
||||
vault.hashicorp.com/agent-inject-secret-wger-env: "kv/data/atlas/health/wger-db"
|
||||
vault.hashicorp.com/agent-inject-template-wger-env: |
|
||||
{{ with secret "kv/data/atlas/health/wger-db" }}
|
||||
@ -162,23 +166,20 @@ spec:
|
||||
- name: wger-media
|
||||
mountPath: /home/wger/media
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /api/v2/version/
|
||||
tcpSocket:
|
||||
port: app
|
||||
failureThreshold: 60
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/v2/version/
|
||||
tcpSocket:
|
||||
port: app
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 6
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/v2/version/
|
||||
tcpSocket:
|
||||
port: app
|
||||
initialDelaySeconds: 45
|
||||
periodSeconds: 20
|
||||
@ -218,23 +219,20 @@ spec:
|
||||
- name: wger-media
|
||||
mountPath: /wger/media
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /api/v2/version/
|
||||
tcpSocket:
|
||||
port: http
|
||||
failureThreshold: 60
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/v2/version/
|
||||
tcpSocket:
|
||||
port: http
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 6
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/v2/version/
|
||||
tcpSocket:
|
||||
port: http
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user