k8s基于curl实现的livenessProbe readinessProbe

k8s基于curl实现的livenessProbe readinessProbe,第1张

k8s基于curl实现的livenessProbe readinessProbe
        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的依赖

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5608880.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-15
下一篇 2022-12-15

发表评论

登录后才能评论

评论列表(0条)

保存