IT lexicon › Infra & Ops › Resource requests/limits

Resource requests/limits

Infra & Ops På svenska → Updated: 2026-05-29

How you specify a container's CPU and memory needs in Kubernetes. Request = what the pod is guaranteed (used for scheduling); limit = the cap it may not exceed. The gap between them governs stability, cost, and how the pod is treated under resource pressure.

Mechanic: the scheduler places a pod on a node that has room for its requests (the sum of requests may not exceed the node's capacity). Limits are enforced by the kernel: if a container exceeds its CPU limit it's throttled, if it exceeds its memory limit it's OOM-killed. Setting request < limit means overcommitting (the node promises more than it has if everyone spikes at once) — flexible but risky. This also determines the QoS class: requests=limits → Guaranteed (killed last), requests only → Burstable, nothing → BestEffort (killed first). Wrong values are one of the most common causes of instability (too low a memory limit → OOM loop) and waste (too high a request → unused capacity). Fundamental to all Kubernetes operations. Related to QoS class and vertical pod autoscaler.

← Back to the lexicon