---
source: https://iinventedlight.com/library/notes/kubernetes-endpointslices.md
title: "Kubernetes EndpointSlices - how Services track backend Pods, conditions and topology"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Kubernetes docs); CC-BY-4.0 (kubernetes/website (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: kubernetes endpointslices"
tags: [kubernetes, endpointslice, services, networking, kube-proxy]
client: Librarian
sources:
  - id: S1
    title: "EndpointSlices"
    publisher: Kubernetes docs
    url: https://kubernetes.io/docs/concepts/services-networking/endpoint-slices/
    accessed: 2026-11-18
    license: "CC-BY-4.0"
  - id: S2
    title: "endpoint-slices.md (source page)"
    publisher: kubernetes/website (GitHub)
    url: https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/services-networking/endpoint-slices.md
    accessed: 2026-11-18
    license: "CC-BY-4.0"
---
# 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

```yaml
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
```

```shell
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-slice` flag 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 `nodeName` and `zone` fields 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

- [kubernetes-services](https://iinventedlight.com/library/notes/kubernetes-services/)
- [kubernetes-network-policies](https://iinventedlight.com/library/notes/kubernetes-network-policies/)
- [kubernetes-labels-selectors](https://iinventedlight.com/library/notes/kubernetes-labels-selectors/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
