In this article
Aggregate all Service slices and preserve address family, port and endpoint eligibility in the client selection.
A custom serving client watches EndpointSlices and connects to only the first slice it sees. The Service is dual-stack, and the selected slice contains an address family the client cannot reach. A correct consumer must aggregate the relevant slices and preserve their address-type and port context.
Select slices for one Service
Use the Service association and namespace rather than a guessed slice name. A Service can have multiple slices for scale, address family and port grouping. Treating one object as the complete backend list can lose valid endpoints even on a single-stack cluster. Keep the association stable when slice objects are replaced.
Preserve addressType
Each EndpointSlice represents a specific address type. For a dual-stack Service, the corresponding families appear in separate slices. Do not flatten addresses into untyped strings and then guess their meaning downstream. Carry the address family through endpoint selection, socket construction and diagnostic output, along with the appropriate protocol and port.
Match the client’s real reachability
A cluster supporting both families does not prove that every client network namespace and route can use both. Check the intended client’s supported socket family, routing and listener configuration. A successful request from a node shell can describe another path. Avoid silently selecting an unreachable family merely because it appears first in a list or watch event.
Handle updates as a collection
Reconcile additions, changes and removals across all slices for the Service. Deduplicate according to endpoint identity and the consumer’s documented model. Do not remove every backend when one slice disappears while others remain. Apply endpoint conditions through the intended traffic policy rather than assuming every published address is eligible.
Test asymmetric family access
In an isolated fixture, provide slices for both families while allowing the test consumer to reach only one. Verify stable selection, update handling and correct port use. Then test a genuine absence of reachable eligible endpoints. Acceptance means a complete typed backend view and a clear unavailable result when none can be used. It does not guarantee instantaneous propagation or that an address’s existence proves model readiness and successful generation.
Primary references
Kubernetes dual-stack Services.
Related reading: Pod is Terminating but still receives traffic: checking EndpointSlices; GPU networking and availability: beyond internet speed.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.