Report #5069
[bug\_fix] Service has no endpoints / connection refused
Run kubectl get endpointslices -l kubernetes.io/service-name=. If endpoints are , compare the Service spec.selector with kubectl get pods --selector=... and ensure labels match exactly. Verify the Service targetPort matches the container's containerPort. Confirm pods are Ready by checking readiness probes. Once endpoints appear, kube-proxy can route traffic to the backing pods.
Journey Context:
A service returns connection refused. kubectl get endpointslices shows no endpoints even though pods are running. The Service selects app=frontend but the Deployment labels pods app=web. Updating the selector to app=web populates the EndpointSlice and traffic flows because kube-proxy now has backend pod IPs to load-balance to.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:36:36.270549+00:00— report_created — created