Troubleshooting common failures
The failures you will meet most: Pending Pods, image pull errors, crash loops and OOM kills, rollouts blocked by quota, empty Services, and NotReady nodes.
Debugging Pods: describe, logs, events and ephemeral containersHow the scheduler places PodsLimitRanges and ResourceQuotas
Troubleshooting common failures
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- Pending means the scheduler can't place the Pod. Its PodScheduled condition says why, node by node: insufficient resources, selector or affinity mismatch, untolerated taints, or a missing PVC.
- ImagePullBackOff and ErrImagePull are the kubelet failing to fetch the image: a wrong name or tag, a private registry without imagePullSecrets, or rate limits. The event names the registry error.
- CrashLoopBackOff is a container that keeps exiting, restarted with back-off up to five minutes. The exit code and logs --previous tell you which: 1 for an app error, 137 with OOMKilled for the memory limit.
- A Deployment stuck below its replica count often has FailedCreate events on its ReplicaSet: quota, Pod Security or admission policy rejected the Pods.
- A Service with no endpoints means no Pod matches its selector and is ready: check labels, readiness and targetPort before touching the network.
- When a node stops reporting, the node lifecycle controller marks it NotReady after 50 seconds, taints it, and evicts Pods after their toleration (300 s by default), unless every node is down, when it deliberately evicts nothing.
Most outages are the same ten problems
Kubernetes failures feel endless when you’re new and repetitive after a year. The same handful of causes explain most of them, and each leaves a recognisable fingerprint in kubectl get, describe and events, the tools from the debugging lesson. This lesson is a field guide: the symptom, what it means, and where to look. Where the lab cluster could produce the failure for real, the output is shown.
Pending: the scheduler can’t place it
The Pod has no node. The PodScheduled condition explains, counting nodes per reason. Three Pods on a two-node lab cluster, one node tainted dedicated=gpu:NoSchedule:
picky: 0/2 nodes are available: 1 node(s) didn't match Pod's node affinity/selector,
1 node(s) had untolerated taint(s).
hungry: 0/2 nodes are available: 1 Insufficient cpu, 1 node(s) had untolerated taint(s).
needs-disk: 0/2 nodes are available: persistentvolumeclaim "data" not found.
Read it per node. For hungry, one node is too small and the other is tainted. Fixes: right-size requests, add capacity (or let the Cluster Autoscaler or Karpenter do it, if no constraint rules every node out), fix the label or toleration, or create the claim. A PVC that exists but is Pending usually means no StorageClass default or a zone mismatch. Remember that requests, not usage, fill nodes.
Image pull errors
ErrImagePull, then ImagePullBackOff as the kubelet backs off. The event carries the registry’s answer:
not foundormanifest unknown: wrong repository or tag. Check for typos and for multi-arch images missing your node’s architecture.unauthorizedordenied: a private registry with noimagePullSecrets, or the wrong secret, or a node IAM role without pull permission.toomanyrequests: registry rate limits. Use a mirror or authenticated pulls.
These are kubelet-side, so the lab cluster can’t show them. Nothing here ever pulls.
CrashLoopBackOff and OOMKilled
The container starts and exits, and the kubelet restarts it with an exponential back-off capped at five minutes. kubectl describe pod shows Last State:
- Exit code 1 or another small code, reason
Error: the app failed.kubectl logs --previoushas the stack trace. Common causes are a missing environment variable or config file, a wrong command or args, or a dependency that’s unreachable at start-up. - Exit code 137, reason
OOMKilled: the kernel killed it at the memory limit. Raise the limit or fix the memory use. A JVM or Node.js heap sized from the node’s memory instead of the container’s is a classic. - Exit code 137 without OOMKilled: something sent SIGKILL, often a failing liveness probe or a termination grace period running out. Check events for
Unhealthy. - Exit code 0 with
restartPolicy: Always: the process finished. That’s a batch job in a Deployment, which should be a Job.
CreateContainerConfigError is different: the container never started because a referenced ConfigMap, Secret or key is missing, or runAsNonRoot met a root image.
A rollout that creates nothing
kubectl get deploy shows 0/3 and there are no Pods. The ReplicaSet tried and the API server refused. In a lab namespace with a quota of 1 CPU, a Deployment without CPU requests produced:
Error creating: pods "web-7c64646678-ljfn9" is forbidden: failed quota: small: must specify requests.cpu for: web
A quota on requests.cpu makes requests mandatory for every Pod. Adding 500m requests let one Pod through, and the quota’s status showed {"pods":"1","requests.cpu":"500m"}. The same pattern, FailedCreate on the ReplicaSet, appears for Pod Security and admission policy rejections. A rollout that does start but never finishes usually has new Pods failing readiness. kubectl rollout status times out with progress deadline exceeded.
A Service that goes nowhere
Connections time out or are refused. Before suspecting the network, check that the Service has endpoints:
kubectl get endpointslice -l kubernetes.io/service-name=web
No endpoints means no Pod both matches the selector and is ready. Compare kubectl get svc web -o jsonpath='{.spec.selector}' with kubectl get pods --show-labels, and check readiness. Endpoints present but traffic failing means targetPort doesn’t match the container’s port, a network policy blocks it, or the app listens only on 127.0.0.1. DNS problems show up as could not resolve from inside a Pod. Test with nslookup web.shop.svc.cluster.local from a debug container.
Nodes going NotReady
The kubelet reports in by renewing a Lease and updating the node’s status. When it stops, the node lifecycle controller in kube-controller-manager acts. I registered a node, fake-9, that never heartbeated, while the other two kept renewing:
fake-1 Ready
fake-2 Ready
fake-9 NotReady
taints: node.kubernetes.io/unreachable:NoSchedule, node.kubernetes.io/unreachable:NoExecute
Ready condition: NodeStatusUnknown: Kubelet stopped posting node status.
It flipped about 50 seconds after its last report, the node-monitor grace period. The NoExecute taint starts the eviction clock. Every Pod gets default tolerations of 300 seconds for not-ready and unreachable, which the lab’s admission added automatically. My Pod set 20 seconds instead and got TaintManagerEviction: Marking for deletion Pod default/victim about 20 seconds after the taint. It then sat in Terminating, because only the lost kubelet could confirm its containers stopped. StatefulSet Pods wait like that until someone confirms the node is really gone.
Earlier, when all three nodes stopped heartbeating at once, the controller logged something different:
"Controller detected that all Nodes are not-Ready. Entering master disruption mode"
In that mode, per node_lifecycle_controller.go, it removes the NoExecute taints and stops all evictions. That’s deliberate. If every node vanishes together, the likelier cause is the control plane’s own network, and mass eviction would turn a blip into an outage. Zones with many unhealthy nodes get slowed evictions for the same reason.
On a real NotReady node, look at the kubelet and the runtime first (journalctl -u kubelet, disk pressure, certificate expiry, the container runtime socket), then the network path to the API server.
About the video
The embed is Is it Observable’s “Troubleshooting Kubernetes Applications: A Comprehensive Guide”, July 2024, 24 minutes. Its chapters cover diagnosing workload issues, troubleshooting network problems, tackling issues in Kubernetes’ core components, and the role of observability. It’s broader than this lesson in places and lighter on specific error messages. I judged it from chapters and description only, since transcripts couldn’t be fetched. English was judged from its “English (US) original” audio track. TechWiseRahul’s video in deeper works through CrashLoopBackOff, ImagePullBackOff, Pending and probe failures hands-on.
What was run: the three Pending messages, the quota rejection and its status, the NotReady node with its taints, the eviction event and the master disruption log line are real output from a local Kubernetes v1.37.3 control plane whose nodes are API objects kept alive by a script. Image pulls, crashes, OOM kills, probes, DNS and network failures need a real kubelet and are written from the Kubernetes debugging docs, checked 2026-11-29.
Where this fits
Finding problems before users do needs numbers. Next: metrics and monitoring.
Check yourself
A Pod is Pending with '0/3 nodes are available: 1 Insufficient cpu, 2 node(s) had untolerated taint(s)'. What are your options?
Lower the Pod's CPU request or add capacity for the one untainted node, or let the Pod tolerate the taint if it belongs on those nodes. The message lists the reason per node, so you know exactly which constraint blocks which nodes.
A container restarts every few minutes with Last State: Terminated, Reason: OOMKilled, Exit Code: 137. What does that mean and what do you change?
The kernel killed it for exceeding its memory limit (137 is 128 + SIGKILL). Raise the limit to match real usage, or fix the leak or heap settings, for example a JVM sized larger than the container limit.
kubectl get deploy shows 0/3 ready and no Pods exist at all. Where do you look?
At the ReplicaSet's events (kubectl describe rs or kubectl events). FailedCreate events show the API server refusing the Pods: an exceeded or unsatisfied ResourceQuota, a Pod Security violation, or an admission policy.
Every node in a zone lost power at once. Why might Kubernetes not evict anything?
The node lifecycle controller treats large-scale loss as a likely control-plane or network problem rather than real node failure. When all nodes, or most in a zone, are NotReady it stops or slows evictions to avoid making things worse.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.