Autoscale a Deployment

Talk it through out loud with your AI coach.

The problem

  • hard
  • Pro

Traffic to your service triples every evening and you're paying for idle pods all day. Explain how you'd autoscale with the Horizontal Pod Autoscaler and the cluster autoscaler, and the pitfalls to watch for.

What a strong answer covers

  • How pod-level scaling decides when to add or remove copies, and which signal suits this service.
  • How node-level scaling makes room for new pods and removes idle machines.
  • The settings and resource figures that autoscaling depends on to behave sensibly.
  • Ways scaling can misbehave or simply move the bottleneck elsewhere.

Common mistake: Scaling the pods without checking whether the nodes, start-up time or shared database can keep up.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud