All jobs / DevOps / SRE / cloud / Kubernetes

DevOps / SRE / cloud interview question · 3–5 years

The pods are Running, but calls to the Service get connection refused.

Walk me through the diagnosis.

The strongest answer

`kubectl get endpoints` for the Service — empty means the selector does not match the pod labels or the pods are not Ready; populated means check targetPort against the container port and the readiness probe

Why it works

Exactly — a Service routes to endpoints, and endpoints are pods matching the selector and passing readiness. Empty list, wrong labels or not ready.

What a good answer covers

Answers that fall short

Who gets asked this

More Kubernetes questions