initialDelaySeconds 的默认值是多少? [英] What is the default value of initialDelaySeconds?

查看:41
本文介绍了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:

  1. 等待initialDelaySeconds
  2. 执行就绪检查并等待timeoutSeconds超时
  3. 如果连续成功的次数大于successThreshold返回success
    如果连续失败次数大于failureThreshold,则返回failure
    否则等待 periodSeconds 并开始新的准备检查
  1. Wait for initialDelaySeconds
  2. Perform readiness check and wait timeoutSeconds for a timeout
  3. If the number of continued successes is greater than successThreshold return success
    If the number of continued failures is greater than failureThreshold return failure
    otherwise wait periodSeconds and start a new readiness check

这篇关于initialDelaySeconds 的默认值是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆