You might have noticed that traffic patterns in production can change quickly. Your app should be able to adapt to them:
- scale up to stay responsive and
- scale down to not waste resources.
Kubernetes provides excellent support for autoscaling applications in the form of the Horizontal Pod Autoscaler (HPA).
Learn how to collect metrics with the custom metrics server and use them to autoscale your applications.