CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Administrator

Resource Requests, Limits and QoS Classes

Requests are what the scheduler reserves. Limits are what the kernel enforces. The relationship between them assigns a QoS class you never write down, and that class decides who gets evicted first. Build all three classes, then watch a container exceed its memory limit and get killed.

Configuration and Secrets Guide 35 of 103 Intermediate

Written against the versions above. Node utilisation figures are whatever your cluster is doing at the time. The QoS assignments and the OOM behaviour are deterministic.

Small nodes make resource pressure easy to demonstrate honestly.
Server NameIP AddressOSRolesCPURAMHDD
CKA1001192.168.0.175Ubuntu 26.04 LTSControl Plane Node2 Core4 GB50 GB
CKA1001-NODE01192.168.0.176Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA1001-NODE02192.168.0.177Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA1001-NODE03192.168.0.178Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. Two numbers that do completely different jobs

  2. The class you never wrote

  3. What the scheduler actually reserved

  4. A memory limit is not advice

  5. Clean up

Official sources