Autoscaling in Kubernetes

Autoscaling in Kubernetes

35.069 Lượt nghe
Autoscaling in Kubernetes
#kubernetes #autoscaling #devops #fullstackdevelopment In the deployments chapter of this series, we've seen how to scale our deployments manually. That way, whenever there is unusual traffic, we can scale our deployment accordingly. But, monitoring our traffic continuously and manually scaling our application to handle such traffic spikes is tedious. What if there is a way to monitor our pods and scale them automatically whenever there is an increase in CPU usage, memory, or some other metric like QPS? This is called autoscaling(scaling automatically based on some metrics). Kubernetes can do that job for us. Not only pods, if we're running on cloud infrastructure, K8s can also spin up additional nodes if the existing nodes can't accept any more pods. In this chapter, we'll learn how different auto-scalers (Horizontal Pod Autoscaler, Vertical Pod Autoscaler, Cluster Autoscaler) work with complete hands-on. Manifests: https://github.com/pelthepu/Kubernetes/tree/master/resources/autoscaling References: VPA: https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler CA: https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler Please give a Like and Subscribe to the channel - https://bit.ly/pavanelthepu Timestamps: 0:00 - Intro 01:06 - Types of Autoscalers 02:56 - Horizontal Pod Autoscaler 13:18 - Vertical Pod Autoscaler 16:46 - Cluster Autoscaler My other courses: Docker Complete Course: https://youtu.be/1eVy_iWrc20 Thank you very much!