Interview Prep/Networking/Containers, Kubernetes, IPv6 and packet captures

A Service returns `Connection refused` / nothing, and `kubectl get endpoints myapp` shows `<none>`.

BeginnerTroubleshootingContainers, Kubernetes, IPv6 and packet captures
Answer

Likely causes → No ready pods match the Service: the selector labels don't match the pod labels, pods are failing readiness probes, or they are in another namespace.

Diagnose →

kubectl get svc myapp -o jsonpath='{.spec.selector}'; echo
kubectl get pods -l app=myapp --show-labels
kubectl get endpointslices -l kubernetes.io/service-name=myapp
kubectl describe pod &lt;pod> | grep -A5 Readiness

Fix → Align the selector with the pod template labels, or fix the readiness probe (wrong path/port, too short initialDelaySeconds).

Prevent → Template Service and Deployment labels together (Helm/Kustomize) and add a check that every Service has endpoints after deploy.

All Networking questions Roadmap: Networking for DevOps

More on Containers, Kubernetes, IPv6 and packet captures