Kubernetes (K8s) (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)
Quality of Service (QoS) Classes: Guaranteed vs. Burstable vs. BestEffort.
senior LevelSystem Design
In Simple Words: When a worker node runs out of physical memory, the Kubelet evicts Pods based on their QoS class:
- Guaranteed (Safest):
requests == limitsfor both CPU and Memory.- Lowest eviction priority. Will only be terminated if no Burstable or BestEffort pods remain on the node.
- Burstable (Standard):
requests < limits, or requests defined without limits.- Evicted when they exceed their requested memory and the node runs out of memory.
- BestEffort (Highest Risk):
- No requests and no limits defined.
- First to be killed by Kubelet OOM eviction. Never use for production workloads!