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 <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.
More on Containers, Kubernetes, IPv6 and packet captures
After someone ran `iptables -F` (or restarted firewalld), all Docker containers lost outbound connectivity.Intermediate`docker run -p 8080:80 myapp` starts fine, but `curl localhost:8080` returns `Connection reset by peer`.BeginnerTwo containers on the default bridge network can't reach each other by container name.Beginner`docker run -p 80:80 nginx` fails with `Bind for 0.0.0.0:80 failed: port is already allocated`.BeginnerA new Kubernetes node stays `NotReady` with `container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized`.Intermediate`curl` to a pod IP works, but `curl` to the Service's ClusterIP times out.Intermediate