An EndpointSlice is a Kubernetes resource that maps a Service to the IP addresses of matching application Pods. Kubernetes builds the mapping from the Service selector and matching Pod labels. section 3.2.6
Operational behavior:
- A Service selector such as app=nginx-frontend identifies matching Pods in the namespace. section 3.2.6
- Matching Pod IP addresses are added to EndpointSlices, while the Service provides a stable access point. section 3.2.6
- When a Pod restarts and its IP changes, kube-controller-manager updates the endpoints. section 3.2.6
NGINX frontend
A Service selecting app=nginx-frontend discovers two matching Pods and adds their IP addresses to EndpointSlices. A related deployment scenario shows three Pod IPs, including 192.10.1.105, 192.10.3.107, and 192.10.4.108. section 3.2.6

