initialDelaySeconds 的默认值是多少? [英] What is the default value of initialDelaySeconds?
本文介绍了initialDelaySeconds 的默认值是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Kubernetes 的 Pod(部署)活性和就绪探针可以配置为这个初始延迟 ---- 意味着探针将在容器启动后的这么多秒后启动.如果没有指定,默认值是多少?我好像找不到periodSeconds 的默认值记录为 10 秒.
Kubernetes' liveness and readiness probes for pods (deployment) can be configured with this initial delay ---- meaning the probe will start after this many seconds after the container is up. If it is not specified, what is the default value? I can't seem to find it. The default value for periodSeconds is documented as 10 second.
谢谢
推荐答案
文档.
It seems that the default value of 0
is missing from the documentation.
运行状况或就绪检查算法的工作原理如下:
The health or readiness check algorithm works like this:
- 等待
initialDelaySeconds
- 执行就绪检查并等待
timeoutSeconds
超时 - 如果连续成功的次数大于
successThreshold
返回success
如果连续失败次数大于failureThreshold
,则返回failure
否则等待periodSeconds
并开始新的准备检查
- Wait for
initialDelaySeconds
- Perform readiness check and wait
timeoutSeconds
for a timeout - If the number of continued successes is greater than
successThreshold
returnsuccess
If the number of continued failures is greater thanfailureThreshold
returnfailure
otherwise waitperiodSeconds
and start a new readiness check
这篇关于initialDelaySeconds 的默认值是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文