Kubernetes & Operations
Requests and limits
Requests and limits decide where a pod lands and how much CPU or memory it can use, and a CPU limit can slow a service even when the node sits idle.
What you will be able to do
- Explain why requests drive scheduling and limits drive throttling or kills.
- Decide when a CPU limit is worth its latency cost for a given service.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kubernetes & Operations
- Taints and tolerationsIntermediate · 4 min
Explain how taints repel Pods, how tolerations allow them onto tainted nodes, and how NoExecute evicts running Pods after an optional time limit set by the workload.
- Topology spread constraintsIntermediate · 5 min
Topology spread constraints keep matching pods evenly spread across zones, and they explain why a hard rule can leave pods Pending when one zone has no room.
- Pod QoSIntermediate · 4 min
A pod's QoS class follows its requests and limits, and that class decides the order in which the kubelet evicts pods when node memory runs short.
- OOMKilled diagnosisAdvanced · 4 min
An OOMKilled exit means the kernel ended a container for passing its memory limit, and the memory that counts includes more than the JVM heap.
- CrashLoopBackOff diagnosisAdvanced · 4 min
CrashLoopBackOff is a waiting state between restarts, and the cause sits in the logs and exit reason of the run that failed, not in the status itself.
- Readiness probesAdvanced · 4 min
A readiness probe decides whether a pod receives Service traffic, and a narrow probe keeps a shared dependency failure from removing every pod at once.