-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated docs for EndpointSliceTerminatingCondition #38390
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -87,18 +87,18 @@ The three conditions are `ready`, `serving`, and `terminating`. | |||||||||||||||
|
||||||||||||||||
#### Ready | ||||||||||||||||
|
||||||||||||||||
`ready` is a condition that maps to a Pod's `Ready` condition. A running Pod with the `Ready` | ||||||||||||||||
condition set to `True` should have this EndpointSlice condition also set to `true`. For | ||||||||||||||||
compatibility reasons, `ready` is NEVER `true` when a Pod is terminating. Consumers should refer | ||||||||||||||||
`Ready` is a condition that maps to a Pod's `Ready` condition. A running Pod with the `Ready` | ||||||||||||||||
condition set to `true` should have this EndpointSlice condition also set to `true`. For | ||||||||||||||||
compatibility reasons, `Ready` is NEVER `true` when a Pod is terminating. Consumers should refer | ||||||||||||||||
Comment on lines
+90
to
+92
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, so is this right?
Suggested change
|
||||||||||||||||
to the `serving` condition to inspect the readiness of terminating Pods. The only exception to | ||||||||||||||||
this rule is for Services with `spec.publishNotReadyAddresses` set to `true`. Endpoints for these | ||||||||||||||||
Services will always have the `ready` condition set to `true`. | ||||||||||||||||
Services will always have the `Ready` condition set to `true`. | ||||||||||||||||
Comment on lines
94
to
+95
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
(Aside: I wonder what |
||||||||||||||||
|
||||||||||||||||
#### Serving | ||||||||||||||||
|
||||||||||||||||
{{< feature-state for_k8s_version="v1.22" state="beta" >}} | ||||||||||||||||
{{< feature-state for_k8s_version="v1.26" state="stable" >}} | ||||||||||||||||
|
||||||||||||||||
`serving` is identical to the `ready` condition, except it does not account for terminating states. | ||||||||||||||||
`serving` is identical to the `Ready` condition, except it does not account for terminating states. | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this right?
Suggested change
|
||||||||||||||||
Consumers of the EndpointSlice API should check this condition if they care about pod readiness while | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
the pod is also terminating. | ||||||||||||||||
|
||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked the source code. For Endpoints, the unofficial condition type is
ready
, for Pod, the official condition type isReady
. This inconsistency is annoying, but it is the fact to be documented.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But part of Kubernetes, right?
We might want to (separately) sprinkle some note shortcodes to point out the oddness.