gpt4 book ai didi

kubernetes - Kubernetes 有状态集 Controller 如何确定 Pod 是否处于就绪状态

转载 作者:行者123 更新时间:2023-12-02 11:42:12 24 4
gpt4 key购买 nike

我正在尝试为我的应用程序之一使用 kubernetes 有状态集 Controller 。正如我从 stateful set 的文档中了解到的,使用 Orderedready 策略它会按顺序创建 pod,并且在前一个处于就绪状态之前不会继续创建下一个。
我的问题是 Controller 如何确定 pods 处于就绪状态?它执行什么探测来确定当前 pod 是否处于就绪状态?

最佳答案

statefulset Controller 不执行任何探测,它监视位于 Running 中的 pod。和 Ready状态。
Pod 的状态在执行探测检查后由 APIserver 更新。如果您配置自定义探针(即 readinessProbe、livenessProbe),将使用这些探针。除此以外,

If a Container does not provide a liveness probe, the default state is Success.


If a Container does not provide a readiness probe, the default state is Success.

关于kubernetes - Kubernetes 有状态集 Controller 如何确定 Pod 是否处于就绪状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63444502/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com