Kubernetes & Operations
Service and EndpointSlice
A Service sends traffic only to the endpoints in its EndpointSlices, so a selector or port name mismatch can leave Ready pods with no backends.
What you will be able to do
- Explain how selectors, targetPort names and EndpointSlices decide which pods get Service traffic.
- Decide which check to run first when a Service has ready pods but no backends.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kubernetes & Operations
- Readiness probesAdvanced · 4 min
A readiness probe decides whether a pod receives Service traffic, and a narrow probe keeps a shared dependency failure from removing every pod at once.
- Startup probesAdvanced · 4 min
A startup probe gives a slow app its own boot budget, so liveness checks can stay tight once the app is running.
- kube proxy and eBPFAdvanced · 4 min
kube-proxy turns Service IPs into node rules, and an eBPF replacement moves that work elsewhere, so you must know which component owns Service traffic before you debug…
- CoreDNS debuggingAdvanced · 5 min
Cluster DNS answers name lookups for pods, and a high ndots value can multiply queries so that overloaded CoreDNS shows up as five-second delays.
- NetworkPolicy semanticsAdvanced · 4 min
NetworkPolicy isolates a pod only once a selecting policy lists a direction, allows add together, and nothing happens at all unless the network plugin enforces them.
- Ingress controllersAdvanced · 4 min
An Ingress is only a set of routing rules, and it serves traffic only after an ingress controller accepts it and publishes an address.