RPROSHAN PRASADENGINEERING NOTES
All articles
Kubernetes

Kubernetes Pod Is Running but the Application Is Unavailable

A practical troubleshooting flow for checking readiness, Services, endpoints, ingress, networking, and application health without guessing.

KubernetesSRETroubleshooting

Start with the symptom

A Pod in Running state does not guarantee that users can reach the application. Kubernetes may have started the container while the application is not ready, the Service selector may not match, or traffic may fail farther up the path.

Follow the request path

Troubleshoot from the workload outward. Check the container, readiness probe, Service selector, EndpointSlices, ingress or load balancer, and network controls in that order.

  • kubectl get pods -o wide
  • kubectl describe pod <pod-name>
  • kubectl get svc
  • kubectl get endpointslices
  • kubectl get ingress

Check readiness and logs

A failing readiness probe removes a Pod from normal Service traffic while leaving the container running. Inspect Events and application logs before changing probes or restarting workloads.

kubectl describe pod <pod-name>
kubectl logs <pod-name> --all-containers=true
kubectl get pod <pod-name> -o yaml

Validate the Service selector

Compare the Service selector with the labels on the Pods. If the selector does not match, the Service can have no usable endpoints even when Pods are healthy. Test connectivity from inside the cluster before moving to ingress or external load-balancer configuration.

SRE takeaway

Use a repeatable request-path checklist and change one thing at a time. Record the symptom, evidence, root cause, mitigation, and follow-up action so the same incident becomes easier to diagnose next time.