Skip to content

Commit cbfb572

Browse files
authored
Update endpoint slices docs
Be more explicit on the "duplicate endpoints" sections about what are the consumers expectations and the need to parse all the list of slices and remove only the duplicates
1 parent 4af53e7 commit cbfb572

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

content/en/docs/concepts/services-networking/endpoint-slices.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,12 @@ different EndpointSlice objects can arrive at the Kubernetes client watch / cach
233233
at different times.
234234

235235
{{< note >}}
236-
Clients of the EndpointSlice API must be able to handle the situation where
237-
a particular endpoint address appears in more than one slice.
236+
Clients of the EndpointSlice API must iterate through all the existing EndpointSlices
237+
associated to a Service and build a complete list of unique network endpoints. It is
238+
important to mention that endpoints may be duplicated in different EndointSlices.
238239

239-
You can find a reference implementation for how to perform this endpoint deduplication
240-
as part of the `EndpointSliceCache` code within `kube-proxy`.
240+
You can find a reference implementation for how to perform this endpoint aggregation
241+
and deduplication as part of the `EndpointSliceCache` code within `kube-proxy`.
241242
{{< /note >}}
242243

243244
## Comparison with Endpoints {#motivation}

0 commit comments

Comments
 (0)