我的理解是,在等待45秒之后,Kubernetes将点击/heartbeat,等待响应5秒。如果它没有得到响应,它将尝试5次(每60秒)。在5x60seconds=5mins经过之后,库伯内特斯会继续进行准备状态检查吗?如果服务在6分钟后出现,这个吊舱会被标记为准备好了吗?第二个问题,它是否继续使用failureThreshold和其他就绪设置?
readinessProbe:
httpGet:
path: /heartbeat
port: 8080
initialDelaySeconds: 45
timeoutSeconds: 5
periodSeconds: 60
failureThreshold: 5
livenessProbe:
httpGet:
path: /summary
port: 8080
initialDelaySeconds: 180
timeoutSeconds: 1
periodSeconds: 60
failureThreshold: 5
发布于 2019-08-16 05:33:35
一般来说,这是正确的:
当到达failureThreshold for livenes探测器时- kubelet将根据Pod的restartPolicy自动执行正确的操作,
一旦读取探针的failureThreshold将被攻击,则Pod将被标记为未准备好。(默认值为3.最小值为1)。
资源:
https://serverfault.com/questions/979316
复制相似问题