【发布时间】:2020-12-20 20:33:43
【问题描述】:
我有以下部署配置。 test-worker-health 和 health 端点都无法访问,因为应用程序由于错误而失败。启动探针在失败后不断重启容器,因为 restartPolicy: Always。 pod 进入 CrashLoopBackoff 状态。有没有办法让这种启动探测失败?
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 8080
periodSeconds: 20
successThreshold: 1
timeoutSeconds: 30
startupProbe:
httpGet:
path: /test-worker-health
port: 8080
failureThreshold: 12
periodSeconds: 10
【问题讨论】:
标签: java kubernetes startup-probe