Kubernetes 健康检查:timeoutSeconds 超过 periodSeconds

7
在 Kubernetes Kubernetes 健康检查探针 中,如果 timeoutSeconds 超过了 periodSeconds 会发生什么?例如:
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3

Pod“失败”会在什么时候发生?

  • initialDelaySeconds + (periodSeconds * failureThreshold);或者
  • initialDelaySeconds + (MAX(periodSeconds,timeoutSeconds) * failureThreshold);

同样的问题也适用于Pod何时成功。

1个回答

7

在这篇博客文章中有一张图表,清晰地解释了您的问题:

Probe Timeline

Pod 将在以下情况下重新启动:

时间 = initialDelay + (failureThreshold - 1) * period + timeout

  • timeoutSeconds > periodSeconds

探测调用将独立于上一个探测响应以给定的间隔触发。一旦探测调用通过或失败/超时,将检查 failureThreshold。但建议使用大于 timeoutSecondsperiodSeconds


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接