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的依赖

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐