A namespace hits its ResourceQuota and new pods fail. What do you see and do?
IntermediateScenarioResources, autoscaling and scheduling
Answer
Situation read → Deployments cannot create pods, with exceeded quota errors.
What I'd do →
kubectl describe quota -n team-ato see used versus hardkubectl describe rs <name>events showforbidden: exceeded quota- Right-size workloads or raise the quota through the platform process
- Note that quotas on requests require every pod to declare requests
- Add a LimitRange for defaults
Why → Quota failures appear on the ReplicaSet, not on the Deployment, which confuses people.
Interview tip → Mention that quota also limits object counts, such as services of type LoadBalancer.
More on Resources, autoscaling and scheduling
How do you choose requests and limits for a new service?BeginnerPods are Pending with `0/6 nodes are available: 6 Insufficient cpu`. What do you do?IntermediateExplain QoS classes and which pods get evicted first.IntermediateCPU limits cause latency spikes though average usage is low. Why and what is the fix?IntermediateHow do you configure an HPA on CPU?BeginnerHPA shows `<unknown>/70%` for CPU. What do you do?Intermediate