All jobs / DevOps / SRE / cloud / Kubernetes
DevOps / SRE / cloud interview question · 3–5 years
HPA keeps adding pods; memory still climbs per pod. What is going on?
The strongest answer
A leak or an unbounded cache — scale-out is buying time, not a fix — I will cap replicas and find the growth
Why it works
Exactly. HPA × leak = a bill and a slower crash. Cap and fix.
What a good answer covers
- Treat rising RSS as a leak.
- Cap the HPA.
- Fix the growth.
- Do not scale your way out of a leak.
Answers that fall short
- Close, but not the strongest: I raise max replicas until finance notices
Finance noticing is not a strategy. - Weak: I disable HPA so the graph looks calm
A calm graph of a dying pod is a lie. - Red flag: I set memory requests to zero so more fit
Zero requests packs more leaks per node.
Who gets asked this
More Kubernetes questions
- 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?
- Thirty teams share a few clusters. Requests for cluster-admin “just to deploy” arrive weekly. How do you hand…
- A service’s health URL always returns 200 from the process start. What did you miss?
- A candidate says “Kubernetes is Docker for production.” What is the cleaner sentence?
- Which Kubernetes object do you reach for: a stateless API, a database, a log agent on every node, and a…
- ConfigMap or Secret for a database password — and is a Secret encrypted?
- A pod is killed in a loop while it is still migrating. Which probe was wrong?