Kubernetes Horizontal Pod Autoscaling

Likes to play with #Kubernetes #golang, servers, and networks.
Search for a command to run...

Likes to play with #Kubernetes #golang, servers, and networks.
No comments yet. Be the first to comment.
The popularity of Kubernetes and its ecosystem grows like a snowball rolling down Mount Everest. Imagine the design patterns, numerous workload requirements, workload types, and behaviors that fuel the development of Kubernetes. Every release goes a ...

Originally posted at Loft Labs Blog. © All rights belong to Loft Labs, Inc. This is one of the posts I have written for Loft Labs, Inc. https://loft.sh/blog/kubernetes-readiness-probes-examples-and-common-pitfalls/ Kubernetes is a great platform to ...

Originally posted at Loft Labs Blog. © All rights belong to Loft Labs, Inc.. This is one of the posts I have written for Loft Labs, Inc.. https://loft.sh/blog/using-kubernetes-ephemeral-containers-for-troubleshooting/ Containers and the ecosystem ar...

Originally posted at Loft Labs Blog. © All rights belong to Loft Labs, Inc.. This is one of the posts I have written for Loft Labs, Inc.. https://loft.sh/blog/python-flask-development-on-kubernetes-with-devspace/ Kubernetes brings some challenges to...

Originally posted at Loft Labs Blog. © All rights belong to Loft Labs, Inc..
This is one of the posts I have written for Loft Labs, Inc..
One of the most powerful features of Kubernetes is autoscaling, as it’s vital that we find the correct balance when scaling resources in our infrastructures. Scale up more than needed, and you will have unused resources which you must pay for. Scale down more than required and your application will not be performant.
Kubernetes brings three types of auto-scaling to the table:
- Cluster Autoscaler
- Horizontal Pod Scaler
- Vertical Pod Scaler
The Cluster Autoscaler scales the nodes up/down depending on the pod’s CPU and memory requests. If a pod cannot be scheduled due to the resource requests, then a node will be created to accommodate. On the other side, if nodes do not have any workloads running, they can be terminated.
The Horizontal Pod Autoscaler scales the number of pods of an application based on the resource metrics such as CPU or memory usage or custom metrics. It can affect replication controllers, deployment, replica sets, or stateful sets. Custom metrics and external metrics are supported, so they can be used by another autoscaler within the cluster as well.
The Vertical Pod Scaler is responsible for adjusting requests and limits on CPU and memory.
Photo by Rafael Leão on Unsplash