The Service with no endpoints

One command splits this in two: a selector that matches nothing, or a port nothing listens on. Why readiness quietly empties a Service, and how a renamed label takes a deploy down.

Why does my Service not reach my pods?

Check the endpoints before anything else, because the answer splits there. An empty list means the selector matches nothing or no pod is ready and the Service is not involved. Endpoints that exist but refuse the connection mean the port is wrong.

Start at the endpoints, always

A Service is a selector and a port. The endpoints list tells you whether the selector found anything, and that single fact decides which half of the problem you are in.

kubectl get endpoints <service> -n <namespace>
kubectl describe service <service> -n <namespace> | grep -E 'Selector|Port|TargetPort'

Empty list: the selector or readiness

Only ready pods matching the selector appear. So an empty list is one of two things.

  • No pod carries the labels the selector asks for. One renamed label does this, and it is the most common cause after a refactor.
  • The pods are there and not ready. The Service is behaving correctly by refusing to send traffic to them.
kubectl get pods -n <namespace> --show-labels
kubectl get pods -n <namespace> -l <selector>

If the second command returns pods that the first says are not ready, this is a readiness problem wearing a networking costume. Probes that kill healthy pods is the way through.

Endpoints present: the port

If endpoints exist and connections are refused, the Service is pointing at a port nothing listens on. targetPort must match what the container actually binds, and the two drift apart whenever one is changed without the other.

Why this reads as an ingress problem

An empty endpoints list is what turns into a 503 at the edge, so this is frequently found from the outside in. A 502 from the ingress covers that direction.

What KubeGraf does with this one

KubeGraf compares the Service selector with the labels and readiness of the pods it should match, and the target port with what the containers expose, so the mismatch is named rather than hunted.

The reference

The full reference: Kubernetes Service not working.

Sources

Read on 25 November 2026. Check the source before you rely on a detail.

Frequently asked questions

What does it mean when a Service has no endpoints?

No ready pod matches its selector. Either the labels do not match or the pods are running but not passing readiness.

How do I find a selector mismatch?

Compare the Service selector with the labels on the pods it should pick up. A single renamed label is the usual cause.

Why do I get connection refused with endpoints present?

The Service is sending traffic to a port nothing is listening on. targetPort and the container port disagree.

Does a failing readiness probe empty the endpoints?

Yes. Readiness controls endpoint membership, so a probe that fails removes the pod from the Service while leaving it running.

Want this worked for you on your own clusters? Apply for KubeGraf Freemium. Three calendar months by approval, no card and no automatic paid conversion.

Last updated . Try KubeGraf Freemium.