{
  "id": 22952410,
  "title": "Kubernetes Interview Prep: You Deployed 3 Pods, Only 1 Is Running. What Now?",
  "url": "https://urgent.news/2026/12/01/kubernetes-interview-prep-you-deployed-3-pods-only-1-is-running-what",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-01T12:18:49.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/naveens16/kubernetes-interview-prep-you-deployed-3-pods-only-1-is-running-what-now-2o1d"
  },
  "original_language": null,
  "account": "When you find yourself in a Kubernetes interview and are asked about a situation where three pods were deployed with only one running, it's important to understand the potential reasons behind this issue. The interviewer is seeking to gauge your ability to diagnose and troubleshoot problems in a real-world scenario.\n\nThe most common cause of this problem is resource exhaustion, where the cluster simply ran out of available CPU or memory on nodes. The Kubernetes scheduler placed the first pod successfully on a node that had just enough resources, but when it tried to schedule the remaining two pods, there were no nodes with enough free capacity. This leads to the two additional pods getting stuck in a Pending state.\n\nAnother possible cause is strict scheduling constraints. This could include the use of podAntiAffinity rules, which prevent multiple pods of the same application from running on the same node. If you only have one worker node or other nodes are tainted or cordoned, the first pod takes up the only available node, leaving the other two pods stuck in Pending. Similarly, if you have used nodeAffinity or nodeSelector to restrict scheduling to nodes with specific labels (like disktype=ssd), and only one node matches these criteria, the other two pods will fail to schedule.\n\nNode-specific failures can also lead to this scenario. For example, the first pod might have successfully deployed on node-1, while pods 2 and 3 were scheduled on node-2, which is experiencing node pressure, kubelet issues, IP address exhaustion, or stateful storage bottlenecks. In cloud environments, each node has a limited number of ENIs and private IP addresses available, which can lead to IP address exhaustion if too many pods are scheduled on a single node.\n\nA stalled rolling update can also result in this situation. If you had three healthy pods running version v1 of your application and are now deploying version v2, which crashes on startup, Kubernetes may terminate two old pods and start two new v2 pods. If these new pods are stuck in CrashLoopBackOff, you'll be left with only one surviving v1 pod.\n\nTo effectively troubleshoot this issue, the interviewer expects you to follow a structured runbook. First, check the status and location of all pods using kubectl get pods with the appropriate label and output format. This will tell you whether the failing pods are Pending or stuck in ContainerCreating, ImagePullBackOff, or CrashLoopBackOff. Next, inspect the events for a failing pod using kubectl describe pod to identify any specific errors or clues in the Events section.\n\nIf the events point to scheduling issues or a specific node acting up, check the health and capacity of the nodes using kubectl get nodes and kubectl describe node. Look for conditions like MemoryPressure or DiskPressure, and compare the requested resources against the node's allocatable resources.\n\nIn summary, when faced with this classic interview scenario, focus on understanding resource exhaustion, scheduling constraints, node-specific issues, and potential issues with rolling updates. Walk the interviewer through your structured troubleshooting process, starting with checking pod status and events, and then inspecting node health and capacity. By demonstrating your ability to diagnose and resolve problems systematically, you'll showcase your skills as a capable Kubernetes engineer.",
  "summary": "If you sit through enough DevOps or Platform Engineering interviews, you are guaranteed to get hit with a scenario-based troubleshooting question. One of the absolute classics goes like this: \"You create a Deployment with replicas: 3. You check the cluster a few minutes later, and only 1 pod is Running, while the other 2 are stuck. What could be going wrong, and how do you fix it?\" Interviewers…",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}