advancedResource Management: Requests, Limits, QoS Classes & OOMKilled

What's the difference between what a resource request does versus what a resource limit does?

A request is what the Scheduler uses to decide which node has enough capacity to place a Pod — it's a scheduling-time guarantee. A limit is the runtime maximum a container may consume; exceeding a CPU limit throttles the process, while exceeding a memory limit gets the container killed (OOMKilled) outright.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to Why does a container get OOMKilled even though the node it's running on has plenty of free memory?← Back to all Kubernetes questions