Pods are `Running` but `0/1 READY`, and events show `Readiness probe failed: HTTP probe failed with statuscode: 503`.
BeginnerTroubleshootingResources, OOM, probes and termination
Answer
Likely causes → The app's readiness endpoint returns 503: a dependency is unavailable, warm-up not finished, or the endpoint deliberately reports not ready. The Pod is removed from Service endpoints, so it gets no traffic but is not restarted.
Diagnose →
kubectl exec api-x -- wget -qSO- localhost:8080/readyz
kubectl logs api-x | tail -50
kubectl get endpointslices -l kubernetes.io/service-name=api -o wide
Fix → Fix the dependency the endpoint reports, or the endpoint logic. If all replicas depend on one shared dependency, consider whether being unready helps at all; failing open may be better than taking the whole service out.
Prevent → Readiness responses that include the failing check in the body, and alerts on Deployments with unavailable replicas.
More on Resources, OOM, probes and termination
`kubectl describe pod` shows `Last State: Terminated, Reason: OOMKilled, Exit Code: 137`.BeginnerA Java service is OOMKilled at 2 GiB limit but the heap is only `-Xmx1800m`.IntermediateMany Pods on one node were killed at once and the node shows a `SystemOOM` event. Container limits were not reached.AdvancedPods show `Evicted` with `The node was low on resource: memory. Threshold quantity: 100Mi, available: 87Mi. Container app was using 1.4Gi, request is 256Mi`.IntermediateA Pod is evicted with `Pod ephemeral local storage usage exceeds the total limit of containers 1Gi`.Intermediatep99 latency spikes every few seconds, CPU usage graph shows only 40% of the limit.Advanced