gpt4 book ai didi

kubernetes - readinessProbe 是否一直在 ping url

转载 作者:行者123 更新时间:2023-12-03 16:46:58 25 4
gpt4 key购买 nike

我正在使用 readinessprobe 进行滚动更新。它工作正常。但即使在 pod 出现之后。即使在 pod 运行后,它也会继续 ping healthz。我假设当 pod 启动并运行时它会停止 ping。对吗?

specs:
containers:
- name: ready
readinessProbe:
httpGet:
path: /healthz
port: 80

最佳答案

kubelet 将继续每 10 秒运行一次此检查,这是默认值。您可以根据需要对其进行自定义。

这是 kubelet 了解容器是否健康的重要数据。如果它不健康,它将尝试重新启动它。因此,这是一个连续的过程。这就是我们尝试实现应用程序可用性

的方式

periodSeconds: How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.

更多详情 configure-probes

关于kubernetes - readinessProbe 是否一直在 ping url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55745505/

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