gpt4 book ai didi

Kubernetes 探测器 - 他们检查 pod 的顺序是什么?

转载 作者:行者123 更新时间:2023-12-05 02:41:43 26 4
gpt4 key购买 nike

希望了解 kubenetes 使用 3 种类型的探测器(启动、就绪和运行)检查 pod 的顺序。

如何正确理解或设计这 3 个探头以用于正常应用?如果启动探测器有错误条目,发生冲突或破坏应用程序的可能性有多大

最佳答案

启动探针

它首先运行。当它成功时,Readiness Probe 和 Liveness Probe 将连续运行。如果失败,容器将被杀死。

将此用于“启动缓慢的应用程序”,如果需要,您可以使用与 Liveness 相同的命令。

The kubelet uses startup probes to know when a container application has started. If such a probe is configured, it disables liveness and readiness checks until it succeeds, making sure those probes don't interfere with the application startup. This can be used to adopt liveness checks on slow starting containers, avoiding them getting killed by the kubelet before they are up and running.

来自 configuring probes

active 探测

这用于在应用程序中发生死锁时终止容器。

就绪探测

这用于检查容器是否可以接收流量。

关于Kubernetes 探测器 - 他们检查 pod 的顺序是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67988701/

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