{"id":447,"date":"2026-11-16T19:15:00","date_gmt":"2026-11-16T19:15:00","guid":{"rendered":"https:\/\/delhiorbit.com\/blog\/?p=447"},"modified":"2026-11-19T14:15:00","modified_gmt":"2026-11-19T14:15:00","slug":"36-51-pods-pending-half-empty-cluster-diagnosis","status":"publish","type":"post","link":"https:\/\/delhiorbit.com\/blog\/2026\/11\/16\/36-51-pods-pending-half-empty-cluster-diagnosis\/","title":{"rendered":"Pending Pods on a Half-Empty Cluster: A KubernetesOps Diagnosis"},"content":{"rendered":"<p>The complaint sounds absurd the first time you hear it: &#8220;the dashboard shows plenty of free CPU, yet new pods sit in Pending.&#8221; Anyone who has circled a Delhi market looking for parking while a back lot stands half empty will recognise the shape of the problem. Space exists, but not in a form the system will let you use. This guide diagnoses that situation as a KubernetesOps problem, symptom first, then cause, then fix.<\/p>\n<h2>Symptom: unschedulable pods with spare capacity on paper<\/h2>\n<p>You deploy a new workload and the scheduler reports that no node fits. Meanwhile, graphs of real CPU use show modest numbers. Two questions settle most cases: what does the scheduler look at, and what does your graph look at? They are rarely the same thing.<\/p>\n<h2>Cause one: the scheduler counts promises, not usage<\/h2>\n<p>The scheduler places pods by their declared resource requests. According to <a href=\"https:\/\/www.xopsschool.com\/kubernetesops\/\">the KubernetesOps section of the Ops Atlas<\/a>, a request is effectively a contract, and the scheduler honours it regardless of how much the pod actually burns. If every team asked for generous amounts, the nodes fill up on paper even though the machines idle. The parking lot is &#8220;full&#8221; because every bay carries a reservation sign, whether or not a car ever arrives.<\/p>\n<p><strong>Check:<\/strong> compare total requested CPU and memory against the allocatable figures on each node, not against raw machine size. Then compare real usage with requests. A large gap, such as usage sitting around a third of requests, points firmly at inflated promises.<\/p>\n<p><strong>Fix:<\/strong> lower requests towards observed usage with headroom, trial the new numbers using the Vertical Pod Autoscaler in recommendation-only mode, and add an admission rule so that new workloads must declare sensible values.<\/p>\n<h2>Cause two: the autoscaler is waiting for the wrong signal<\/h2>\n<p>If you rely on node autoscaling, remember it reasons from requests too. It adds machines when pods cannot be placed, and by default it removes a node only when requests on it fall below fifty percent. So a cluster hovering at sixty percent requested on every machine will never shrink, even if usage is tiny. Conversely, a cluster that will not grow may have pods whose requests exceed what any single node can offer; no number of new machines of that size could fit them.<\/p>\n<p><strong>Check:<\/strong> read the autoscaler&#8217;s events for the pending pod and confirm that the request is smaller than a node&#8217;s allocatable capacity. <strong>Fix:<\/strong> shrink the oversized request, or add a node group with larger machines.<\/p>\n<h2>Cause three: your graphs lie by omission<\/h2>\n<p>A frequent source of confusion is the metrics component installed in nearly every cluster. The Atlas points out that metrics-server is meant only for autoscaling purposes; it is not a monitoring system. If dashboards are fed from it alone, they will miss object state such as pending pods, which is the job of kube-state-metrics. Build the dashboard that includes unschedulable pods and restart rates and the mystery usually dissolves quickly.<\/p>\n<h2>Cause four: pressure and eviction order<\/h2>\n<p>Sometimes the real problem is on the opposite side: nodes are short of memory and the kubelet starts evicting pods. The order matters. Pods using more than they requested go first, and priority decides among the rest. The Atlas adds a warning here: this node-pressure eviction ignores disruption budgets. Workloads that requested little but consume plenty are the first to disappear, which is another good reason to keep requests honest rather than low.<\/p>\n<h2>Cause five: someone else&#8217;s rule is blocking the move<\/h2>\n<p>If the cluster has room yet a pod still cannot start, inspect the rules around it. Taints, node selectors and zero-disruption budgets each narrow the field. Preemption, which evicts lower-priority pods to make space, respects budgets only on a best-effort basis, so you cannot assume it will behave politely. When in doubt, describe the pod and read the scheduler&#8217;s message line by line; it usually names the specific constraint that failed.<\/p>\n<h2>An illustration with invented numbers<\/h2>\n<p>Imagine, purely as an example, a team that gave every replica of its web tier two CPUs because a load test once looked scary. Real usage settles at a fifth of that. With twelve replicas, the team has quietly reserved twenty-four CPUs and is using under five. A new batch job asking for four CPUs stays Pending, and everyone blames the cloud. The diagnosis above would find the gap in minutes: requests are the bottleneck, not hardware. Cutting each replica to a little over what it uses, then watching for a week, frees most of the reservation without touching a single machine.<\/p>\n<h2>A five-minute triage table<\/h2>\n<ul>\n<li>Requests near allocatable, usage low: lower and rightsize requests.<\/li>\n<li>One huge request, small nodes: split the workload or use larger machines.<\/li>\n<li>Autoscaler not removing nodes: check the fifty percent threshold.<\/li>\n<li>Dashboard silent about Pending: add state metrics.<\/li>\n<li>Random evictions: look at memory pressure and unrealistic low requests.<\/li>\n<\/ul>\n<h2>Keep it from coming back<\/h2>\n<p>Track allocation, the usage-to-request ratio and the number of unschedulable pods monthly. If two of them move in the wrong direction at once, investigate before users do. When your own review is done, treat yourself to <a href=\"https:\/\/delhiorbit.com\/blog\/2026\/10\/17\/plan-a-complete-delhi-sightseeing-trip-with-ease\/\">an easy plan for covering Delhi&#8217;s main sights<\/a> or skim <a href=\"https:\/\/delhiorbit.com\/blog\/2026\/10\/03\/what-are-the-must-visit-places-in-delhi\/\">a short list of places in Delhi that visitors should not skip<\/a>.<\/p>\n<p>One more habit is worth adopting: write the diagnosis down. A short note naming the symptom, the evidence you collected and the change you made turns a one-off scramble into a runbook entry, and the next engineer on call will thank you. Over a few months, patterns appear. If most notes blame inflated requests, the real fix lies in policy and review, not in repeated clean-ups.<\/p>\n<p>The lesson is straightforward: free capacity that nobody can claim is not free. Clean up the reservations, and the empty lot becomes usable again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Five causes of pods stuck in Pending while dashboards show free capacity, each with a quick check and a practical fix, drawn from the Ops Atlas.<\/p>\n","protected":false},"author":5,"featured_media":448,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[],"class_list":["post-447","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-trends"],"_links":{"self":[{"href":"https:\/\/delhiorbit.com\/blog\/wp-json\/wp\/v2\/posts\/447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/delhiorbit.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/delhiorbit.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/delhiorbit.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/delhiorbit.com\/blog\/wp-json\/wp\/v2\/comments?post=447"}],"version-history":[{"count":1,"href":"https:\/\/delhiorbit.com\/blog\/wp-json\/wp\/v2\/posts\/447\/revisions"}],"predecessor-version":[{"id":572,"href":"https:\/\/delhiorbit.com\/blog\/wp-json\/wp\/v2\/posts\/447\/revisions\/572"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/delhiorbit.com\/blog\/wp-json\/wp\/v2\/media\/448"}],"wp:attachment":[{"href":"https:\/\/delhiorbit.com\/blog\/wp-json\/wp\/v2\/media?parent=447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/delhiorbit.com\/blog\/wp-json\/wp\/v2\/categories?post=447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/delhiorbit.com\/blog\/wp-json\/wp\/v2\/tags?post=447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}