From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

AutoScaling

AutoScaling

(no audio) - Last thing I want to talk about is AutoScaling. So for CKAD you need to know how to manually scale Pods using kubectl skill, and so on. In a real cluster, however, Pods are often automatically scaled based on resource usage properties that are collected by the Metrics Server. And there is a HorizontalPodAutoscaler API resource that observes usage statistics, and after passing a threshold, it'll add additional replicas automatically so that if your replication is getting very busy, you automatically get additional replicas. Setting up autoScaling is not required in CKAD. But as it is so important in real clusters, I want to demonstrate how to do it anyway. This demo does require the use of Metrics Server, which in Minikube is easy to set up. In other clusters, it might be a little bit harder. You can attend my CKA class if you want to know how to set up the Metrics Server. So here is a procedure that I'm going to demonstrate. Let me show you. The resources that we need for…

Contents