Interview Prep/Kubernetes/Resources, autoscaling and scheduling

Explain QoS classes and which pods get evicted first.

IntermediateScenarioResources, autoscaling and scheduling
Answer

Situation read → Under node memory pressure, important pods got killed before batch jobs.

What I'd do →

  1. Guaranteed: requests equal limits for CPU and memory in every container
  2. Burstable: at least one request or limit set
  3. BestEffort: none set
  4. Eviction order is BestEffort, then Burstable exceeding requests, then Guaranteed last
  5. Check with kubectl get pod -o jsonpath='{.status.qosClass}'

Why → The kubelet ranks pods by QoS and usage over requests, and OOM scores follow the same ordering.

Interview tip → Mention system-node-critical priority for agents.

All Kubernetes questions Roadmap: Kubernetes core

More on Resources, autoscaling and scheduling