k8s 健康检查

livenessProbe:
exec:
command:
- /bin/sh
- '-c'
- /opt/app-root/src/check_conf.sh
failureThreshold: 3            #探测失败阈值
initialDelaySeconds: 10    #容器起来多久才开始探测
periodSeconds: 10           #告诉kubelet每10秒探测一次
successThreshold: 1       #探测失败后成功1次就认为是成功的
timeoutSeconds: 3        #探测超过3秒则认为本次探测是失败的

 

 

参考 https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/

posted @ 2017-12-18 18:11  三木燕  阅读(777)  评论(0编辑  收藏  举报