Interview Prep/Kubernetes/Scheduling, Resources & Autoscaling

What are resource requests and limits?

BeginnerConceptScheduling, Resources & Autoscaling
Answer

A request is what the scheduler reserves for the container and the basis for CPU shares; a limit is the cap enforced at runtime. CPU over its limit is throttled; memory over its limit gets the container OOMKilled. Requests drive placement, limits drive runtime behavior.

resources:
  requests: { cpu: 250m, memory: 256Mi }
  limits:   { memory: 512Mi }
All Kubernetes questions Roadmap: Kubernetes core

More on Scheduling, Resources & Autoscaling