Skip to content

Commit 3cbacc4

Browse files
NovemberZuluTim Bannister
and
Tim Bannister
authored
Update readiness probe docs to match observed behaviour (#49476)
* Update readiness probe docs to match observed behaviour * Address comment * Reword * Describe endpoint and LB instead of Pod * Address comments * Fix link Co-authored-by: Tim Bannister <[email protected]> * Clarify endpoint vs pod conditions * Add more focus on Pod and less on endpoint --------- Co-authored-by: Tim Bannister <[email protected]>
1 parent d08348c commit 3cbacc4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

content/en/docs/concepts/workloads/pods/pod-lifecycle.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,10 +562,11 @@ processing its startup data, you might prefer a readiness probe.
562562

563563
{{< note >}}
564564
If you want to be able to drain requests when the Pod is deleted, you do not
565-
necessarily need a readiness probe; on deletion, the Pod automatically puts itself
566-
into an unready state regardless of whether the readiness probe exists.
567-
The Pod remains in the unready state while it waits for the containers in the Pod
568-
to stop.
565+
necessarily need a readiness probe; when the Pod is deleted, the corresponding endpoint
566+
in the `EndppointSlice` will update its [conditions](/docs/concepts/services-networking/endpoint-slices/#conditions):
567+
the endpoint `ready` condition will be set to `false`, so load balancers
568+
will not use the Pod for regular traffic. See [Pod termination](#pod-termination)
569+
for more information about how the kubelet handles Pod deletion.
569570
{{< /note >}}
570571

571572
#### When should you use a startup probe?

0 commit comments

Comments
 (0)