Skip to content

Fix a Kubernetes Service with no endpoints

Short answer: A Service with no endpoints silently black-holes traffic — the pods look healthy but nothing is wired to receive requests. It's almost always a selector mismatch (the Service's selector doesn't match any pod labels) or no ready pods (pods exist but fail their readiness probe). Check the endpoints, then the selector vs pod labels.

Last reviewed: 2026-06-27.

Diagnose it

kubectl get endpoints <svc> -n <ns>                 # empty / <none> = the problem
kubectl get svc <svc> -n <ns> -o jsonpath='{.spec.selector}'
kubectl get pods -n <ns> --show-labels              # compare labels to the selector
kubectl get pods -n <ns> -o wide                    # are any pods Ready?

If endpoints is empty but pods are Running, it's a selector or readiness problem.

Causes & fixes

Cause Signal Fix
Selector ≠ pod labels labels don't match spec.selector fix the Service selector or the pod labels
No ready pods pods Running but 0/1 READY fix the readiness probe / the app's /healthz
Wrong targetPort endpoints exist but connections refused match targetPort to the container port
Pods in a different namespace selector matches nothing here Services are namespaced — put them together
Headless/ExternalName misconfig no ClusterIP/endpoints by design confirm the Service type is what you intend
# example: align the selector to the pods' actual label
kubectl patch svc <svc> -n <ns> -p '{"spec":{"selector":{"app":"<real-label>"}}}'

Why it's dangerous

There's no crash and no error — the pods are green, so it's easy to miss. Traffic just fails (503 / timeout) at the Service. This is exactly the kind of silent failure a crash-only monitor won't catch.

How Karakuri fixes it for you

Karakuri has a native Service analyzer: it watches Endpoints and flags a Service whose selector matches no ready pods (after a short grace period to ignore rollouts), then explains the mismatch in Slack with a suggested fix — no Prometheus needed. Try it free: make demo.

FAQ

Pods are Running — why no endpoints? Running ≠ Ready. Only ready pods become endpoints. A failing readiness probe keeps a Running pod out of the Service.

Is this the same as a 503? A 503/timeout at the Service is the symptom; "no endpoints" is the cause.