From 34b21c2969a2886833ccec6e27cd9dad555d0c44 Mon Sep 17 00:00:00 2001 From: tlipoca9 <160737620+tlipoca9@users.noreply.github.com> Date: Thu, 28 Mar 2024 15:51:07 +0800 Subject: [PATCH] Update healthcheck-failed.md --- content/troubleshooting/pod/healthcheck-failed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/troubleshooting/pod/healthcheck-failed.md b/content/troubleshooting/pod/healthcheck-failed.md index 4e73241..a80bc2a 100644 --- a/content/troubleshooting/pod/healthcheck-failed.md +++ b/content/troubleshooting/pod/healthcheck-failed.md @@ -8,7 +8,7 @@ ## 健康检查配置不合理 -`initialDelaySeconds` 太短,容器启动慢,导致容器还没完全启动就开始探测,如果 successThreshold 是默认值 1,检查失败一次就会被 kill,然后 pod 一直这样被 kill 重启。 +`initialDelaySeconds` 或 [StartProbe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-startup-probes) 配置的时间太短,容器启动慢,导致容器还没完全启动就开始探测。如果 failureThreshold 是默认值 1,检查失败一次就会被 kill,然后 pod 一直这样被 kill 重启。参考 [健康检查配置](../../best-practices/configure-healthcheck.md)。 ## 节点负载过高