All jobs / DevOps / SRE / cloud / Kubernetes
DevOps / SRE / cloud interview question · 1–3 years
Pods are Pending while nodes look empty in the console. What did you forget?
The strongest answer
Requests: the scheduler needs a number, and a huge request will not fit even if RSS is small right now
Why it works
Exactly. Requests are the reservation. Empty-looking nodes can still be fully reserved.
What a good answer covers
- Requests = reservation.
- Look at allocatable, not a casual CPU graph.
- Do not zero requests to pack.
- Limits ≥ requests.
Answers that fall short
- Close, but not the strongest: I should delete the scheduler
The scheduler is the feature. - Weak: I should set requests to zero so everything packs
Zero requests is noisy-neighbour theatre. - Red flag: I should set limits below requests to be safe
Limits below requests is invalid / nonsense you should not ship.
Who gets asked this
More Kubernetes questions
- You have five HTTP services. One Service of type LoadBalancer each, or an Ingress?
- What does Helm give you over applying raw YAML, and what does `helm rollback` not do?
- The pods are Running, but calls to the Service get connection refused. Walk me through the diagnosis.
- The cluster is two versions behind. How do you catch up?
- Pods cannot reach an external API that works from your laptop. What do you check in the cluster?
- HPA keeps adding pods; memory still climbs per pod. What is going on?
- A cluster has no NetworkPolicies. What do you install without boiling the ocean?
- You run one precious cluster that cannot be rebuilt. What is the programme?