From the course: Google Cloud Associate Cloud Engineer Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Managing horizontal and vertical autoscaling configurations

Managing horizontal and vertical autoscaling configurations - Google Cloud Tutorial

From the course: Google Cloud Associate Cloud Engineer Cert Prep

Managing horizontal and vertical autoscaling configurations

- Managing horizontal and vertical auto scaling configurations. So in Kubernetes you can do horizontal and vertical auto scaling. To do horizontal auto scaling, you need a horizontal pod or a scaler object. And this is an example of how you define one. You have here, the, the kind. First of all, it's horizontal pod auto scaler. That's what determines what Kubernetes object you're deploying. And then, we have here where, where this applies to you. So what are we auto scaling? We are, we're saying it's a deployment with the name Nginx, and how do we auto scale it? We want a minimal replicas of one and a maximum of 10. So we'll be scaling the number of pods between one and 10 based on demand. And the trigger for a scaling event will be to target CPU utilization percentage. And we're defined a threshold here is 50%. So if we go above that, we add new pods to the deployment. If we fall a certain amount below that, then it will be removing pods. What about vertical auto scaling? You may…

Contents