vault: use http health probes
This commit is contained in:
parent
92c2cf2127
commit
69ff5b8bb2
@ -74,19 +74,28 @@ spec:
|
|||||||
- name: SKIP_SETCAP
|
- name: SKIP_SETCAP
|
||||||
value: "true"
|
value: "true"
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
exec:
|
httpGet:
|
||||||
command: ["sh", "-c", "VAULT_ADDR=http://127.0.0.1:8200 vault status"]
|
path: /v1/sys/health?standbyok=true
|
||||||
|
port: api
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 3
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
httpGet:
|
||||||
command: ["sh", "-c", "VAULT_ADDR=http://127.0.0.1:8200 vault status >/dev/null 2>&1 || true"]
|
path: /v1/sys/health?standbyok=true&sealedcode=204&uninitcode=204
|
||||||
|
port: api
|
||||||
initialDelaySeconds: 60
|
initialDelaySeconds: 60
|
||||||
periodSeconds: 20
|
periodSeconds: 20
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 3
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
limits:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 1Gi
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user