← All notes

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

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

Sources

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

Permanent ID: iil:note:phcmmmj3

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.},
}

Markdown

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.

All artifact files (JSON index)

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.