Interview Prep/Kubernetes/Resources, autoscaling and scheduling

How do you choose requests and limits for a new service?

BeginnerScenarioResources, autoscaling and scheduling
Answer

Situation read → A new API goes live next week and nobody knows its footprint.

What I'd do →

  1. Load test in staging and record usage with kubectl top pod and Prometheus
  2. Set requests near p90 usage and memory limit with 20-30% headroom
  3. Be cautious with CPU limits, since they cause throttling
  4. Use the Vertical Pod Autoscaler in recommendation mode to refine
  5. Review after two weeks of production data

Why → Requests drive scheduling and QoS, limits cap usage. Wrong values cause either waste or evictions.

Interview tip → Say you start from measurements, not guesses.

All Kubernetes questions Roadmap: Kubernetes core

More on Resources, autoscaling and scheduling