Interview Prep/Kubernetes/Resources, autoscaling and scheduling

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 →

  1. kubectl describe quota -n team-a to see used versus hard
  2. kubectl describe rs <name> events show forbidden: exceeded quota
  3. Right-size workloads or raise the quota through the platform process
  4. Note that quotas on requests require every pod to declare requests
  5. 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.

All Kubernetes questions Roadmap: Kubernetes core

More on Resources, autoscaling and scheduling