k8s基于curl实现的livenessProbe readinessProbe
livenessProbe:initialDelaySeconds: 60periodSeconds: 5timeoutSeconds: 3successThreshold: 1failureThreshold: 3exec:command:- /bin/sh- -c...
·
livenessProbe:
initialDelaySeconds: 60
periodSeconds: 5
timeoutSeconds: 3
successThreshold: 1
failureThreshold: 3
exec:
command:
- /bin/sh
- -c
- curl -s localhost:8080/actuator/health
readinessProbe:
initialDelaySeconds: 10
periodSeconds: 1
timeoutSeconds: 3
successThreshold: 1
failureThreshold: 50
exec:
command:
- /bin/sh
- -c
- curl -s localhost:8080/actuator/health
基于curl的方案可实现对依赖系统的监视,如fluentd对elasticsearch-logging的依赖
更多推荐
已为社区贡献18条内容
所有评论(0)