Day 17/40 - Kubernetes Autoscaling Explained| HPA Vs VPA

Sdรญlet
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

Komentรกล™e • 34

  • @myhappymiles
    @myhappymiles Pล™ed 11 hodinami +1

    Great explanation and demo

  • @roia6011
    @roia6011 Pล™ed 14 dny +1

    Very good explanation on HPA and VPA

  • @oshabzsam9773
    @oshabzsam9773 Pล™ed mฤ›sรญcem +1

    You are doing a good Job. Thank you

  • @vamsikrishna-f8y
    @vamsikrishna-f8y Pล™ed mฤ›sรญcem +1

    Thank you piyush

  • @radhikaGudidesi
    @radhikaGudidesi Pล™ed 25 dny +1

    I always thought K8s was difficult to learn, but it is easy after watching your videos.

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  Pล™ed 24 dny

      Don't worry it will be a piece of cake after you complete this series, it will no more haunt you :)

  • @CloudEnthusiastic
    @CloudEnthusiastic Pล™ed mฤ›sรญcem +2

    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.

  • @guntreddirajesh
    @guntreddirajesh Pล™ed mฤ›sรญcem

    Great explanation, kudos to you Piyush, keep helping the community.we are here to support you

  • @somenghosh4163
    @somenghosh4163 Pล™ed mฤ›sรญcem +1

    Very well put up .. once again rich content by Piyush

  • @MayurLokhande-l3n
    @MayurLokhande-l3n Pล™ed 24 dny +1

    echo "Very nicely and cleanly explained"
    echo " Thank You sir"

  • @prithwishlaha2208
    @prithwishlaha2208 Pล™ed mฤ›sรญcem +1

    Good

  • @Gopinath_V19
    @Gopinath_V19 Pล™ed 26 dny

    Thank you sir
    Well Explained

  • @eapenmani
    @eapenmani Pล™ed mฤ›sรญcem +1

    Clearly articulate the autoscaling in K8s. Thank you

  • @HPKnowValley
    @HPKnowValley Pล™ed 13 dny

    very good explained Autoscaling...

  • @tendaimakuwerere5693
    @tendaimakuwerere5693 Pล™ed mฤ›sรญcem +1

    Lets go!!

  • @sangativamsikrishna1691
    @sangativamsikrishna1691 Pล™ed mฤ›sรญcem +1

    Thanks piyush for the explaining the HPA concept along with horizontal and vertical scaling concepts.

  • @artbart9080
    @artbart9080 Pล™ed mฤ›sรญcem +1

    Great!

  • @artbart9080
    @artbart9080 Pล™ed mฤ›sรญcem +1

    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"

  • @kidg9536
    @kidg9536 Pล™ed mฤ›sรญcem +1

    Is KEDA part of CKA ?

  • @sagarbirla2879
    @sagarbirla2879 Pล™ed 28 dny

    Hi Piyush, number of Replicas are not going down even after the CPU Utilization is 0 and it's been 30 minutes

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  Pล™ed 26 dny

      Hey Sagar, this shouldn't happen. can you check logs, describe your deployment and see if the Auto scaler is working fine?