What are resource requests and limits in Kubernetes, and why are they important?

Easy Topic: Kubernetes May 24, 2026

Requests tell the Kubernetes scheduler how much CPU/memory to reserve for a pod when scheduling it onto a node. Limits are the hard caps — the container is throttled (CPU) or killed (memory) if it exceeds them.

resources:
  requests:
    memory: "128Mi"
    cpu: "250m"
  limits:
    memory: "256Mi"
    cpu: "500m"

Always set both. Without requests, the scheduler cannot make good placement decisions. Without limits, a runaway container can starve other workloads on the same node (the “noisy neighbor” problem).

← Previous How do you manage secrets securely in Kubernetes?... Next → How does the Kubernetes Horizontal Pod Autoscaler (HPA)...

Practice Similar Questions

Back to Kubernetes Topics