启动探针
启动探针
startupProbe:
httpGet:
path: /healthz
port: 8080
failureThreshold: 30
periodSeconds: 10 # 30 × 10s,可覆盖约 300 秒的启动过程最坏容忍时间 ≈ failureThreshold × periodSeconds;通过后才开始 liveness 计时,无需再配大 initialDelaySeconds。
为慢启动应用争取时间:启动探针通过前,liveness 与 readiness 都不执行;通过后移交常规探针。
startupProbe:
httpGet:
path: /healthz
port: 8080
failureThreshold: 30
periodSeconds: 10 # 30 × 10s,可覆盖约 300 秒的启动过程