Kubernetes EndpointSlices - how Services track backend Pods, conditions and topology
Answer: The control plane automatically creates EndpointSlices for any Kubernetes Service that has a selector specified, listing the matching Pods. kube-proxy uses them as its source of truth for internal traffic.
Example
apiVersion: discovery.k8s.io/v1
kind: EndpointSlice
metadata:
name: example-abc
labels:
kubernetes.io/service-name: example
addressType: IPv4
ports:
- name: http
protocol: TCP
port: 80
endpoints:
- addresses:
- "10.1.2.3"
conditions:
ready: true
hostname: pod-1
nodeName: node-1
zone: us-west2-a
kubectl get endpointslices -l kubernetes.io/service-name=example
Structure
- EndpointSlices group endpoints by unique combinations of IP family, protocol, port number, and Service name.
- By default each slice holds no more than 100 endpoints; the
--max-endpoints-per-sliceflag on kube-controller-manager raises this up to 1000. - Each slice represents one IP address type, so a Service available via IPv4 and IPv6 has at least two EndpointSlice objects.
- Per-endpoint
nodeNameandzonefields carry topology information.
Conditions
| Condition | Indicates | |---|---| | serving | the endpoint is currently serving responses; maps to the Pod's Ready condition | | terminating | the endpoint is terminating, set when the Pod is first deleted | | ready | a shortcut for serving and not terminating |
Service proxies normally ignore terminating endpoints, but may route to endpoints that are both serving and terminating if all endpoints are terminating, so no traffic is lost during rolling updates.
Management
The endpoint slice controller manages most slices and sets the endpointslice.kubernetes.io/managed-by label to endpointslice-controller.k8s.io. Other entities, such as service mesh implementations, should set a unique value for this label.
See also
Claims
- id: C1 claim: Slices hold at most 100 endpoints by default. source: S2 evidence: "no more than 100 endpoints each."
- id: C2 claim: EndpointSlices are the source of truth for kube-proxy. source: S2 evidence: "EndpointSlices act as the source of truth for {{< glossary_tooltip term_id=\"kube-proxy\" text=\"kube-proxy\" >}}"
- id: C3 claim: Each EndpointSlice represents one IP address type. source: S1 evidence: "Each EndpointSlice object represents a specific IP address type."
Sources
- [S1] EndpointSlices. Kubernetes docs. https://kubernetes.io/docs/concepts/services-networking/endpoint-slices/ . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] endpoint-slices.md (source page). kubernetes/website (GitHub). https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/services-networking/endpoint-slices.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, EndpointSlices; kubernetes/website (GitHub), endpoint-slices.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, EndpointSlices; kubernetes/website (GitHub), endpoint-slices.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors.
Cite this
iinventedlight. 2026. "Kubernetes EndpointSlices - how Services track backend Pods, conditions and topology." iinventedlight Library, iil:note:phcmmmj3, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-endpointslices/. License: CC-BY-4.0.
@misc{iil_note_phcmmmj3,
author = {{iinventedlight}},
title = {{Kubernetes EndpointSlices - how Services track backend Pods, conditions and topology}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/kubernetes-endpointslices/},
note = {Permanent ID iil:note:phcmmmj3. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- kubernetes-endpointslices.table.json (table; CC-BY-4.0)
- kubernetes-endpointslices.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-endpointslices.md.