A ClusterIP is an address no network interface owns. When the checkout pod calls http://payments.billing.svc.cluster.local:8080, CoreDNS answers with something like 10.96.41.12, the packet leaves the pod, and rules programmed by kube-proxy on the node rewrite that destination to the IP of one real pod behind the Service.

Nothing ever listens on 10.96.41.12. That is why ping to a ClusterIP fails even on a perfectly healthy cluster in the default iptables mode, and why "the Service is not reachable" is really a question about which of several translation steps broke.

The fix is almost always quick once the broken step is known. Finding it is where hours go, because people test layers out of order: they rewrite NetworkPolicies while the Service has zero endpoints, or restart CoreDNS when the app is listening on 127.0.0.1. The plan below spends day 1 locating the failing layer from inside the cluster and day 2 making the next failure loud.

What has to be true for a pod to reach a Service

Five conditions must hold at the same time. Write them down once, because every symptom maps to one of them.

Service DNS name: <service>.<namespace>.svc.cluster.local. The short name payments resolves only from pods in the same namespace, through the search list in the pod's /etc/resolv.conf.

EndpointSlice: the object listing the pod IPs and ports behind a Service. The control plane fills it with pods that match the Service selector, and marks each endpoint ready or not ready based on the pod's readiness probe. Only ready endpoints receive traffic.

port and targetPort: port is what clients call on the ClusterIP; targetPort is where the container actually listens. They are allowed to differ, which is exactly why they drift apart.

Bind address: the interface the application listens on inside its container. A server bound to 127.0.0.1 accepts connections from its own pod only.

NetworkPolicy: a namespaced allow list. Once any policy selects a pod for ingress, all ingress to that pod is denied except what some policy allows. The same applies separately to egress.

As a single expression:

reachable = dns_resolves(name)
            AND ready_endpoints(service) > 0
            AND targetPort == container_listen_port
            AND bind_address != 127.0.0.1
            AND policy_allows(client_pod, server_pod, port)
            AND policy_allows_egress(client_pod, kube-dns, 53)

The last line surprises people most often: if the client namespace has a default-deny egress policy, DNS itself is blocked, and every call fails before a single packet reaches the Service.

The order of the terms matters as much as the terms. Each one depends on the one before it: there is no point reading port numbers for a Service with zero ready endpoints, and no point reading policies before you know a listener exists. Checking from top to bottom means every test either clears a layer or names the culprit.

Day 1, first hour: find the failing layer from a debug pod

Test from where the client lives. A laptop with kubectl port-forward bypasses DNS, kube-proxy and NetworkPolicy, so a working port-forward proves almost nothing about pod-to-Service traffic.

  1. Start a throwaway pod in the client's namespace, with the client's labels if NetworkPolicy might be involved:
kubectl -n shop run netcheck --rm -it --image=nicolaka/netshoot --labels=app=checkout -- bash
  1. Resolve the name: nslookup payments.billing.svc.cluster.local. No answer means DNS or DNS egress. An answer means move on.
  2. Check endpoints: kubectl -n billing get endpointslices -l kubernetes.io/service-name=payments -o wide. An empty list means the selector matches nothing. Addresses with ready set to false mean the readiness probe is failing.
  3. Compare ports: kubectl -n billing get svc payments -o yaml against the container spec and against what the process actually listens on.
  4. Call a pod IP directly from the debug pod: curl -sv http://10.244.3.17:8080/healthz. If the pod IP works and the ClusterIP does not, look at kube-proxy or the CNI on that node.
  5. Check what the process binds to with kubectl -n billing exec deploy/payments -- ss -lntp, if the image includes ss. A listener on 127.0.0.1:8080 explains a refused connection on the pod IP.
  6. List policies on both sides: kubectl get networkpolicy -n billing and -n shop. Read which pods each one selects before reading its rules.
  7. Note the error type. "Connection refused" arrives quickly and usually means nothing listens on that port. A timeout after 10 or 30 seconds usually means packets are dropped, which points to NetworkPolicy, a missing endpoint on the node, or the CNI.

Steps 2 to 4 resolve most cases in under 15 minutes. Steps 5 and 8 separate application problems from network problems, which decides who gets paged next.

The causes behind most failed calls

Most real incidents fall into a short list, roughly in the order you should suspect them.

The selector stopped matching. Someone renamed a label from app: payments to app.kubernetes.io/name: payments in the Deployment and not in the Service. The Service still exists, still has a ClusterIP, still resolves in DNS, and has zero endpoints. Clients see refused connections or timeouts depending on the proxy mode.

Readiness is failing. Pods run, logs look normal, but the probe hits a path that changed in the last release and returns 404. The pods stay out of the EndpointSlice as not ready. kubectl get pods shows 0/1 in the READY column, which is easy to miss when the STATUS says Running.

Ports drifted. The Service sends to targetPort 80 while the container moved to 8080. Named ports (targetPort: http, with the container port named http) remove this class of error, because the number then lives in one place.

The client used the short name across namespaces. payments resolves to nothing from the shop namespace, or worse, to a different payments Service that happens to exist there.

A policy blocks it. A default-deny ingress policy in billing with an allow rule for pods labelled app: frontend lets the frontend in and silently drops checkout. Cross-namespace rules need a namespaceSelector, and the kubernetes.io/metadata.name label that every namespace carries automatically is the safest one to select on.

Two rarer cases are worth knowing. internalTrafficPolicy: Local on a Service drops traffic from any node that has no local endpoint, so the call works from some nodes and fails from others. And a pod calling its own Service can fail if hairpin traffic is not handled correctly by the CNI.

A worked incident: checkout cannot reach payments

An illustrative case, of the kind platform teams see after a routine release. At 14:05 the checkout service starts returning errors on 100% of payment calls. Checkout runs 4 replicas in namespace shop; payments runs 3 replicas in billing behind a Service on port 8080.

From a debug pod in shop, nslookup payments.billing.svc.cluster.local returns 10.96.41.12 in under 5 ms, so DNS is fine. The EndpointSlice lists 3 addresses, all with ready set to false. kubectl get pods -n billing shows 0/1 on all 3 pods. The readiness probe calls /health; the release at 13:58 moved the health check to /healthz. The probe has been failing every 10 seconds since, and after 3 consecutive failures, about 30 seconds per pod, each pod dropped out of the Service.

Fixing the probe path restores 3 ready endpoints within about 40 seconds of the rollout. Checkout still fails on 25% of calls. Pinning the debug pod to each node in turn shows calls failing only from node 4. That node was cordoned and uncordoned during the release, and its kube-proxy pod had restarted and was still logging sync errors. Restarting kube-proxy on node 4 brings failures to 0 by 14:41.

Total time: 36 minutes. Without the ordered checks, the first 20 minutes would usually have gone into NetworkPolicy, which was never involved. Two failures stacked on top of each other is also the normal case in an incident, not the exception, which is why the procedure ends with checking from every node.

This exact scenario also works as a pairing exercise in platform engineering interviews: candidates who check DNS, endpoints and ports in order usually beat candidates who know more flags.

Day 2: make the next failure obvious

Day 1 fixed one incident. Day 2 is about making each layer in the chain report its own failure, so that next time nobody needs the procedure.

Alert on Services with zero ready endpoints. kube-state-metrics exposes endpoint and EndpointSlice data per Service, and a Prometheus rule for any production Service with no ready addresses for 2 minutes catches selector and readiness failures before clients do. Keep a short allow list for Services that are scaled to zero on purpose.

Use named ports everywhere. A one-line convention in code review, targetPort must be a name, removes the port drift class almost entirely.

Test NetworkPolicy like code. A small job that runs in CI against a staging cluster can start pods with each client's labels and assert which connections succeed and which are refused. Even 10 to 20 pairs, covering the calls that matter, catch policy regressions that nobody would notice until a release.

Make readiness probes boring. Point them at a path owned by the platform, the same in every service, and fail a deployment in CI when the probe path does not return 200 from the built image.

Write the client's address as the full name, payments.billing.svc.cluster.local, or at least payments.billing. It costs a few characters and removes a whole class of namespace mistakes. It also avoids the extra DNS lookups that ndots: 5 triggers for short names, which matters at high request rates.

None of this needs a new tool. All five changes fit in a day of work for one engineer, and each one turns a silent failure into an alert, a failed build or a review comment.

Where Service networking is moving

The path described here, CoreDNS plus kube-proxy plus iptables, is still the most common one, and it is changing underneath. kube-proxy gained an nftables mode, which reached general availability in Kubernetes 1.33 and handles large numbers of Services with less rule churn than iptables. Many managed clusters already replace kube-proxy entirely with eBPF datapaths such as Cilium, where Service translation happens at the socket level and tools like Hubble show dropped flows with the policy that dropped them.

The Gateway API is also taking over the north-south side from Ingress, and its mesh work brings the same routing objects to traffic between pods, so a call from checkout to payments may soon pass through an HTTPRoute as well as a Service. That adds one more layer to the chain, with its own status conditions to read.

Multi-cluster Services, where payments lives in two clusters behind one name, add another. For engineers, that shifts the valuable skill from memorising iptables chains toward reading object status and flow logs across several layers quickly, which is also what platform teams increasingly test for when they hire.

The legacy Endpoints API has been deprecated in favour of EndpointSlices, so scripts and dashboards built on kubectl get endpoints will need updating. For debugging, this means the reachability chain stays the same while the tools for its last two links get much better: on clusters with flow visibility, a dropped packet comes with the name of the policy that dropped it. The habit worth keeping is the order of checks; the commands will keep changing.