Day 17/40 - Kubernetes Autoscaling Explained| HPA Vs VPA
Vloลพit
- ฤas pลidรกn 26. 08. 2024
- Welcome to day 17/40 of the Certified Kubernetes Administrator course. In this video, we will demonstrate Kubernetes Autoscaling and explore VPA, HPA, Cluster Autoscaler, and Node AutoProvisioning in Kubernetes.
In this video, you'll learn:
- What is scaling in Kubernetes
- Horizontal vs Vertical Scaling
- HPA vs VPA
- Cluster autoscaling vs. Node auto-provisioning
- Demo Implementing HPA by simulating load on the cluster
๐ Reinforce your knowledge with practical tasks in the Day 17 folder of our GitHub repository: github.com/piy...
๐จ๐ผโ๐ป #40daysofKubernetes Challenge:
Join our 40-day challenge and solidify your Kubernetes skills. Details can be found in the "#40daysofkubernetes.md" file on GitHub or by watching our Day 0 video.
๐ Course Schedule:
I'll release 3-4 videos per week and host live Q&A sessions on weekends to answer your questions and guide you through the CKA certification process.
๐ต๐ปโโ๏ธ Who Should Watch:
This CKA course is designed for beginners, college students, and working professionals who want to learn Kubernetes from scratch, prepare for the CKA certification exam, or enhance their knowledge. It was designed based on the latest curriculum for the CKA exam in May 2024 and uses 1.30.2 as the Kubernetes version.
Let's start your Kubernetes journey together!
๐๐ข๐ ๐ฃ๐๐๐ง๐ ๐ง๐จ๐ง๐ข๐ฅ๐๐๐ ๐ฆ๐๐ฅ๐๐๐ฆ ๐ Itโs ๐ ต๐๐ ด๐ ด โณ
โ ๐๐๐๐ฟ๐ฒ ๐๐ฒ๐๐ข๐ฝ๐ ๐ญ๐ฒ๐ฟ๐ผ ๐๐ผ ๐๐ฒ๐ฟ๐ผ:
โข Azure DevOps Zero to H...
โ ๐๐ญ๐ต๐ฌ๐ฌ ๐๐๐๐ฟ๐ฒ ๐๐๐ป๐ฑ๐ฎ๐บ๐ฒ๐ป๐๐ฎ๐น๐ ๐๐๐น๐น ๐๐ผ๐๐ฟ๐๐ฒ
โข AZ900WithPiyush - Azur...
โ ๐ก๐ฎ๐บ๐ฎ๐๐๐ฒ ๐๐ผ๐ผ๐ด๐น๐ฒ ๐๐น๐ผ๐๐ฑ | ๐๐๐ฃ ๐ง๐๐๐ผ๐ฟ๐ถ๐ฎ๐น ๐ณ๐ผ๐ฟ ๐ฏ๐ฒ๐ด๐ถ๐ป๐ป๐ฒ๐ฟ๐, ๐ฎ ๐ฐ๐ผ๐บ๐ฝ๐น๐ฒ๐๐ฒ ๐ฝ๐น๐ฎ๐๐น๐ถ๐๐ ๐ณ๐ผ๐ฟ ๐๐ต๐ฒ ๐๐๐๐ผ๐ฐ๐ถ๐ฎ๐๐ฒ ๐๐น๐ผ๐๐ฑ ๐๐ป๐ด๐ถ๐ป๐ฒ๐ฒ๐ฟ (๐๐๐) ๐๐ฒ๐ฟ๐๐ถ๐ณ๐ถ๐ฐ๐ฎ๐๐ถ๐ผ๐ป ๐๐ ๐ฎ๐บ:
โข Namaste Google Cloud, ...
โ ๐๐๐๐ฟ๐ฒ ๐๐ฎ๐๐ฎ ๐ณ๐๐ป๐ฑ๐ฎ๐บ๐ฒ๐ป๐๐ฎ๐น๐ ๐๐ฃ ๐ต๐ฌ๐ฌ ๐ณ๐๐น๐น ๐ฐ๐ผ๐๐ฟ๐๐ฒ
โข Microsoft Azure Data F...
โ ๐๐ฒ๐ป๐ธ๐ถ๐ป๐ ๐ง๐๐๐ผ๐ฟ๐ถ๐ฎ๐น ๐ณ๐ผ๐ฟ ๐๐ฒ๐ด๐ถ๐ป๐ป๐ฒ๐ฟ๐
โข Jenkins Tutorial For B...
โ #๐ญ๐ฌ๐๐ฒ๐ฒ๐ธ๐๐ผ๐ณ๐ฐ๐น๐ผ๐๐ฑ๐ผ๐ฝ๐ - ๐ฅ๐ฒ๐ฎ๐น-๐๐ถ๐บ๐ฒ ๐ฐ๐ผ๐บ๐ฝ๐น๐ฒ๐ ๐ต๐ฎ๐ป๐ฑ๐-๐ผ๐ป ๐ฝ๐ฟ๐ผ๐ท๐ฒ๐ฐ๐๐ ๐ผ๐ป ๐๐น๐ผ๐๐ฑ ๐ฎ๐ป๐ฑ ๐๐ฒ๐๐ข๐ฝ๐
โข 10WeeksOfCloudOps Chal...
โ ๐๐ฒ๐๐ข๐ฝ๐ ๐ฎ๐ป๐ฑ ๐๐น๐ผ๐๐ฑ ๐ฃ๐ผ๐ฑ๐ฐ๐ฎ๐๐๐:
โข DevOps and Cloud Podcasts
โ ๐๐ถ๐๐น๐ฎ๐ฏ ๐๐ ๐๐ ๐ง๐๐๐ผ๐ฟ๐ถ๐ฎ๐น | ๐๐ป๐ฑ ๐ง๐ผ ๐๐ป๐ฑ ๐ฅ๐ฒ๐ฎ๐น-๐๐ถ๐บ๐ฒ ๐ฃ๐ฟ๐ผ๐ท๐ฒ๐ฐ๐ [๐๐๐น๐น ๐๐ผ๐๐ฟ๐๐ฒ]
โข Gitlab CI CD Tutorial ...
Subscribe to our channel to get notified about the latest videos.
๐ฅ / techtutorialswithpiyush
-----------------------------------------------------------------------------------------------------------------------
๐๐ผ๐ป๐ป๐ฒ๐ฐ๐ ๐บ๐ฒ ๐๐ฒ๐ฟ๐ฒ:๐๐
๐ฅ๐ฌ๐ผ๐๐ง๐๐ฏ๐ฒ โถ / techtutorialswithpiyush
โณ๐๐ถ๐ป๐ธ๐ฒ๐ฑ๐๐ป โถ / piyush-sachdeva
๐๐๐ป๐๐๐ฎ๐ด๐ฟ๐ฎ๐บ โถ / techtutorialswithpiyush
๐๐ง๐๐ถ๐๐๐ฒ๐ฟ โถ / techie_piyush
๐จโ๐ป ๐๐ถ๐๐ต๐๐ฏ โถ github.com/piy...
โ ๐ ๐ฒ๐ฑ๐ถ๐๐บ.๐ฐ๐ผ๐บ โถ / piyush.sachdeva055
๐ ๐ฑ๐ฒ๐.๐๐ผ โถ dev.to/piyushs...
โจ๐๐ถ๐๐ฐ๐ผ๐ฟ๐ฑ โถ / discord
-----------------------------------------------------------------------------------------------------------------------
References ๐:
#devops #techtutorialswithpiyush
Great explanation and demo
Thank you ๐๐
Very good explanation on HPA and VPA
Glad it was helpful!
You are doing a good Job. Thank you
Thanks and welcome
Thank you piyush
I always thought K8s was difficult to learn, but it is easy after watching your videos.
Don't worry it will be a piece of cake after you complete this series, it will no more haunt you :)
Cmon Piyush Sir.... we are all with you...such a great content...I am not even thinking to take break while watching your video.... you are explaining in such a way that the person will be hypnotized.
Thank you for the kind words! I truly appreciate it
Great explanation, kudos to you Piyush, keep helping the community.we are here to support you
Thank you, it means a lot โค๏ธ
Very well put up .. once again rich content by Piyush
Thank you
echo "Very nicely and cleanly explained"
echo " Thank You sir"
kubectl exec -it thankyou -- echo "you're most welcome"
Good
Thank you
Thank you sir
Well Explained
You're welcome
Clearly articulate the autoscaling in K8s. Thank you
very good explained Autoscaling...
Glad to know that
Lets go!!
Thanks piyush for the explaining the HPA concept along with horizontal and vertical scaling concepts.
welcome
Great!
Hello.As usual great explanation!
However i had an error running the load generator:
kubectl run -i --tty load-generator --rm --image=busybox:1.28 --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- php-apache; done"
Error:
pod "load-generator" deleted
pod default/load-generator terminated (StartError)
failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "C:/Program Files/Git/usr/bin/sh": stat C:/Program Files/Git/usr/bin/sh: no such file or directory: unknown
I'm on Windows machine.
In my case this worked :
kubectl run -i --tty load-generator --rm --image=busybox:1.28 --restart=Never -- sh -c "while sleep 0.01; do wget -q -O- php-apache; done"
Thank you for sharing! Glad you figured it out
Is KEDA part of CKA ?
No Keda is a seperate project hence, it is not part of CKA
Hi Piyush, number of Replicas are not going down even after the CPU Utilization is 0 and it's been 30 minutes
Hey Sagar, this shouldn't happen. can you check logs, describe your deployment and see if the Auto scaler is working fine?