Autoscaling in Kubernetes

Поділитися
Вставка
  • Опубліковано 22 тра 2024
  • #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: github.com/pelthepu/Kubernete...
    References:
    VPA: github.com/kubernetes/autosca...
    CA: github.com/kubernetes/autosca...
    Please give a Like and Subscribe to the channel - 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: • Docker Tutorial | Ful...
    Thank you very much!

КОМЕНТАРІ • 74

  • @user-vz4wr7ev9w
    @user-vz4wr7ev9w 2 місяці тому +1

    Your videos are truly remarkable! The clarity of your explanations, coupled with practical examples, sets them apart from anything I've seen before.

    • @PavanElthepu
      @PavanElthepu  2 місяці тому

      Thank you so much. Please share with your friends and colleagues

  • @iSalmaniac_
    @iSalmaniac_ 8 місяців тому +9

    Your Playlist is a Master Piece . i have done Multiple Udemy Courses , Gone Through UA-cam But None were so Detailed like yours one . Thankyou :)

    • @PavanElthepu
      @PavanElthepu  8 місяців тому

      Thanks for you love❤️ Please subscribe and share with your friends and colleagues

    • @philip.s.
      @philip.s. 7 місяців тому +2

      Totally agree.. Thanks Pavan🎉

  • @omkarmule9
    @omkarmule9 4 місяці тому +2

    very informative ..aisa koi nahi abhi tak youtube pe jo ye topic ko itna achha demo dia..thxx alot

  • @vinpal2507
    @vinpal2507 Рік тому +1

    Good one. Thanks for sharing this knowledge.

  • @anjaliranot897
    @anjaliranot897 9 місяців тому +1

    so much i learned here, thank you for sharing your knowlegde.

  • @vaibhavmewada4508
    @vaibhavmewada4508 Місяць тому +1

    amazing explanation

  • @dummymail6029
    @dummymail6029 Місяць тому +1

    great video thanks pavan

  • @ssnblessed
    @ssnblessed 8 місяців тому +2

    you deserve more subscribers - your content is GOLD!

  • @BandlamudiRohitJayaraju
    @BandlamudiRohitJayaraju Рік тому +1

    Awesome video pavan! That is a very clear and concise explanation.

  • @aausum
    @aausum 29 днів тому

    Thank you so much

  • @kavacham222
    @kavacham222 2 місяці тому +1

    Clear explanation abt Auto scalling. Thanks for your video.

    • @PavanElthepu
      @PavanElthepu  2 місяці тому +1

      Thank you. Please share with your friends and colleagues

  • @deepakshankar249
    @deepakshankar249 3 місяці тому +1

    Very clean explanation Pavan. Thank you very much.

    • @PavanElthepu
      @PavanElthepu  3 місяці тому

      Thank you Deepak. Please share with your friends and colleagues

  • @senthilkumar5129
    @senthilkumar5129 Рік тому +1

    Really well Explaining Thank you

    • @PavanElthepu
      @PavanElthepu  Рік тому

      Thank you Senthil. Please subscribe and share with your friends and colleagues

  • @Ravisharma-gt8zz
    @Ravisharma-gt8zz 2 місяці тому

    Hi pawan thanks for making this series.Your entire series is awesome
    Can you pls provide document path from where we can access yaml file in good manner

  • @0xfaizan
    @0xfaizan 7 місяців тому +1

    would be awesome if we can have a video around keda event driven scaling video

  • @jalandharbehera2456
    @jalandharbehera2456 Рік тому +1

    Really, the way you are explaining...its too easy... thanks sir 🙏🙏 no words

    • @PavanElthepu
      @PavanElthepu  Рік тому

      Thank you Jalandhar. Please share with your friends and colleagues

  • @kalaivanipalanivel
    @kalaivanipalanivel Рік тому +1

    your explain really
    good

    • @PavanElthepu
      @PavanElthepu  Рік тому

      Thank you. Please subscribe and share with your friends and colleagues

  • @samikshasharma3544
    @samikshasharma3544 Місяць тому

    What an explanation! Remarkable video 👏...... I have a question, how and where does vpa sends a recommendation notification if the resources need to be scaled up or down

  • @gokulchowdary1679
    @gokulchowdary1679 3 місяці тому +1

    Thanks pavan

    • @PavanElthepu
      @PavanElthepu  3 місяці тому

      Glad that it helped you. Please subscribe and share with your friends and colleagues

  • @user-cd3hf1vg8h
    @user-cd3hf1vg8h 14 днів тому +1

    why didn't you explain about the target and uncapped target in VPA, I am specially looking for it only. Can anyone explain me in well about all 4 parts of recommendation in case of VPA

  • @amoghrajn6253
    @amoghrajn6253 11 місяців тому +1

    Pavan Bro, I'm very fortunate to see your video, so clear and understandable. Thanks a lot............

    • @PavanElthepu
      @PavanElthepu  11 місяців тому

      Thank you Amogh. Please subscribe and share with your friends and colleagues

  • @anilkommalapati6248
    @anilkommalapati6248 11 місяців тому +1

    I just executed HPA workshop uninterruptedly on my m/c. All my doubts catastrophically imploded. All your tutorials are truly a master piece. You are a gem . thanks a lot dude.

  • @user-gj8kg6nr5b
    @user-gj8kg6nr5b 3 місяці тому +1

    Thanks a lot Pavan, Please teach us init containers and sidecar containers demo with usecases

  • @xblackgamer7838
    @xblackgamer7838 Місяць тому +1

    Can you deep dive with deployments strategies please 🙃

  • @ammu-jv3qb
    @ammu-jv3qb Рік тому +1

    awesome yar

    • @PavanElthepu
      @PavanElthepu  Рік тому

      Thank you. Please subscribe and share with your friends and colleagues

  • @durbabanik3372
    @durbabanik3372 Місяць тому

    too good

  • @sanjay-on6in
    @sanjay-on6in 24 дні тому

    SIr,
    If Cluster Auto Scaling searching un schedule pods automatically new vm will create .
    But if un schedule pods are present with other reasons.

  • @yogithakakarla1716
    @yogithakakarla1716 8 місяців тому

    When does this vpa trigger

  • @pratappadhy2005
    @pratappadhy2005 Місяць тому +1

    😍😍😍😍

  • @najibiziki4070
    @najibiziki4070 7 місяців тому +1

    hi Pavan, first of all thank you for your video on k8s, you really simplified things too much

    • @PavanElthepu
      @PavanElthepu  6 місяців тому +1

      Thank you, please subscribe and share with your friends and colleagues

    • @najibiziki4070
      @najibiziki4070 6 місяців тому +1

      yes of course
      i already did

  • @rsrini7
    @rsrini7 Місяць тому

    So the HPA target is compared with deployment request right ? limit is optional so it wont compare ?

  • @kalaivanipalanivel
    @kalaivanipalanivel Рік тому +1

    Monitoring using Prometheus & Grafana.Creating a Dashboard to monitor the Kubernetes cluster and pipelines can you put some videos .

  • @najibiziki4070
    @najibiziki4070 7 місяців тому +1

    can I ask you a question, please, regarding mongodb url, I haven't been able to implement the solution

    • @PavanElthepu
      @PavanElthepu  6 місяців тому +1

      What's that?

    • @najibiziki4070
      @najibiziki4070 6 місяців тому

      I deployed my database, mongodb, with replicaset.
      I have 3 replicas. i use headless service the name is "mongo".
      i know that i only can R/W in the PREMARY database and only /R from the SECONDARY database .
      connection string is like this
      "mongodb://mongo-0.mongo,mongo-1.mongo,mongo-2.mongo:27017"
      i dont know if this coonection string act like load lancer or i need to have two connection string .
      1-"mongodb://mongo-0.mongo:27017" to write in database , PREMARTY
      2- "mongodb://mongo:27017" to read data from data base , a load lancer

  • @yesssssd
    @yesssssd Рік тому +1

    Can we deploy hpa,vpa nd ca at same time

  • @user-ej8xe9tg1h
    @user-ej8xe9tg1h 3 місяці тому +1

    How can I install autoscaling in my windows.?

    • @PavanElthepu
      @PavanElthepu  3 місяці тому

      Autoscaling in Windows? Could you please elaborate your question please?

  • @Rameshpowervlogs
    @Rameshpowervlogs Рік тому

    please provide what erver ur using urls or anything that links in dseciption

    • @PavanElthepu
      @PavanElthepu  Рік тому

      I didn’t get you Ramesh. Could you please elaborate?

    • @Rameshpowervlogs
      @Rameshpowervlogs Рік тому +1

      @@PavanElthepuyour using some github links for installing the vpa..any orther links for installation please proved that also in Below description...it help for practice..

    • @PavanElthepu
      @PavanElthepu  Рік тому +1

      Definitely Ramesh. Added in description

    • @Rameshpowervlogs
      @Rameshpowervlogs Рік тому +1

      @@PavanElthepu tanq

  • @kalaivanipalanivel
    @kalaivanipalanivel Рік тому +1

    Sorry pavan can u please share the yaml file .

    • @PavanElthepu
      @PavanElthepu  Рік тому

      I have added the link to YAML files in description Kalaivani Palanivel.
      github.com/pelthepu/Kubernetes/tree/master/resources/autoscaling

  • @Rameshpowervlogs
    @Rameshpowervlogs Рік тому +1

    u r telling i think wrong in increse pods means scale out u r telling the scale up and derese means scale down i think

    • @PavanElthepu
      @PavanElthepu  Рік тому +2

      Hmm! With you. Scale up is generally used to increase resources, and scale-out means adding more pods. However, Scale up and Scale out are used interchangeably generally.
      Here is the reference from K8s official documentation:
      "This means that the HPA is still capable of scaling up if one or more metrics give a desiredReplicas greater than the current value."

  • @ravindrad6906
    @ravindrad6906 4 місяці тому +1

    Please start training , your explanation is awesome .pls share your contact

    • @PavanElthepu
      @PavanElthepu  4 місяці тому

      Hi Ravindra, I doubt if I have any time left for training😊 Please reach out to me on LinkedIn

  • @hanisripadi1976
    @hanisripadi1976 Рік тому +1

    Hi Pavan, That's very good explanation with animated images.
    If you don't mind can you please share your contact number to clear small queries in explained topics

    • @PavanElthepu
      @PavanElthepu  Рік тому

      Thank you Hani Sripadi. You can reach me on LinkedIn, Facebook or Instagram

    • @hanisripadi1976
      @hanisripadi1976 Рік тому

      Are you from Hyderabad location?

    • @PavanElthepu
      @PavanElthepu  Рік тому

      Yes

    • @hanisripadi1976
      @hanisripadi1976 Рік тому

      Could you please help me to setup kubernates cluster on Ec2 machine