Skip to content

Set container ready condition to false once liveness probe failed #131690

Open
@caitong93

Description

@caitong93

Problem

There is a case:
t0: container liveness probe failed, readiness probe still succeed for some reason, kubelet starts to do pre-stop
t1: pre-stop done, kubelet starts to stop container
between t0 and t1, readiness probe didn't failed, pod is still ready, traffic is forwarded to the abnormal container.

Suggestion

Set container ready condition to false once liveness probe failed.

Metadata

Metadata

Assignees

Labels

area/pod-lifecycleIssues or PRs related to Pod lifecyclekind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/nodeCategorizes an issue or PR as relevant to SIG Node.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions