Commit b9c8cd2b authored by 智勇's avatar 智勇

增加livenessProbe

parent 3097ae2a
...@@ -65,15 +65,22 @@ spec: ...@@ -65,15 +65,22 @@ spec:
limits: limits:
cpu: {{resources.cpu.limit}}m cpu: {{resources.cpu.limit}}m
memory: {{resources.memory.limit}}Mi memory: {{resources.memory.limit}}Mi
livenessProbe:
exec:
command:
- /home/quant_group/readyCheck.sh
initialDelaySeconds: 200
successThreshold: 1
# 默认值3
failureThreshold: 40
readinessProbe: readinessProbe:
exec: exec:
command: command:
- /home/quant_group/readyCheck.sh - /home/quant_group/readyCheck.sh
initialDelaySeconds: 30 initialDelaySeconds: 30
timeoutSeconds: 2 timeoutSeconds: 2
periodSeconds: 5 # 默认值10
successThreshold: 1 periodSeconds: 10
failureThreshold: 40
volumes: volumes:
- name: filelog - name: filelog
hostPath: hostPath:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment