From the course: Kubernetes Essential Training: Application Development

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The Horizontal Pod Autoscaler (HPA)

The Horizontal Pod Autoscaler (HPA) - Kubernetes Tutorial

From the course: Kubernetes Essential Training: Application Development

Start my 1-month free trial

The Horizontal Pod Autoscaler (HPA)

- [Instructor] We've seen that deployments can run more than one copy of the same pod definition and like I've said, there's two main reasons why you might want to do that. The first is for redundancy or high availability, which we've seen in the videos on liveness probes and others. The second reason is for scale. You might be in the lucky position of having so many users that one pod just can't cope with the load. Now, you can try to guess how many pods you need but that load might be cyclic over the period of a day or a year or it might be totally unpredictable. Maybe a marketing campaign goes well and you end up on the front page of Reddit. A very powerful feature of Kubernetes is its ability to automatically rescale your deployments based on actual load. So here I've got a copy of the envbin deployment as one pod and we're connected to it. Now, you can notice, I can come down here and I can tell it to use a…

Contents