[ Kube 58 ] Using Vertical Pod Autoscaling in Kubernetes

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 88

  • @preedie
    @preedie Месяц назад +1

    5 years later still such an informative video. Thanks! :)

    • @justmeandopensource
      @justmeandopensource  Месяц назад

      @@preedie glad it is still being watched. 🙏

    • @preedie
      @preedie Месяц назад

      @@justmeandopensource There is no deploy folder in your metrics git hub repo? Can you please check?

  • @rajivchodisetti5538
    @rajivchodisetti5538 4 года назад +2

    loved the way you explain complex stuff in a very simplified manner that too hands on, highly appreciate it

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      Hi Rajiv, thanks for watching and taking time to comment/appreciate. Cheers.

  • @Suktoo
    @Suktoo 4 года назад +3

    Its really a good video... I have been searching for vpa but did not fine any good one and finally got insight from this video ... Keep up the good work venkat 😀.

  • @danialatash9815
    @danialatash9815 3 года назад +1

    I have learned a lot. Thanks for the video!

  • @BharatSingh-hf1yt
    @BharatSingh-hf1yt 3 года назад +1

    Amazing and very useful video
    Thanks

  • @oyee3900
    @oyee3900 5 лет назад +1

    Hi Venkat, this is helpful. Thanks for the video!

  • @kiranpadam5703
    @kiranpadam5703 4 года назад +1

    it's really very good venkat,upto know i have knowledge on hpa only,thanks for posting this video,it's really help ful

  • @mustufamithaiwala7205
    @mustufamithaiwala7205 5 лет назад +1

    Venkat!!!, you are Awesome man!!!, SuperB explaination...

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Hi Musufa, thanks for watching this video and taking time to comment/appreciate. Cheers.

  • @araratpetrosyan1542
    @araratpetrosyan1542 4 года назад +1

    Really great tutorial!!!! This is awesome Venkat!!

  • @MRkumar-kx8rw
    @MRkumar-kx8rw 2 года назад +1

    Hi, thanks for detail steps and i have followed everything but in VPA recommendations are not showing

  • @prabhakersaxena5553
    @prabhakersaxena5553 3 года назад

    Really great tutorial!!! Thanks Venkat.

  • @thannasip8001
    @thannasip8001 4 года назад +1

    Nice explanation 👌👍

  • @manikandans8808
    @manikandans8808 5 лет назад +1

    Always enjoying k8s videos here....it's cool and amazing...so according to u which one would be preferable?

    • @justmeandopensource
      @justmeandopensource  5 лет назад +2

      Do you mean vertical or horizontal? Each has its own usecase. Cheers.

  • @jlan421
    @jlan421 4 года назад +1

    Venkat, awesome video! question about the autoscaler manifest itself, instead of creating individual VPA for each deployment, can you define multiple targetRef in the spec stanza for each additional deployment in that same VPA? Thanks in advance, keep up the good work!

    • @justmeandopensource
      @justmeandopensource  4 года назад +2

      Hi, I don't think you can have multiple targetRef sections in the VPA specification. I read through some documentations, and there were no mentions about multiple targets for autoscaling. Best to test it. Sure it will throw error. Thanks.

  • @venkatmamillapalli
    @venkatmamillapalli 5 лет назад +2

    Hi Venkat
    Can you Please explan breafly about user creation in cluster and assining roles for them

  • @pareshpatel493
    @pareshpatel493 3 года назад +1

    Great one...

  • @devopscommunity5321
    @devopscommunity5321 3 года назад +1

    Its really a good video Can you please make a separate video using helm Thanks

    • @justmeandopensource
      @justmeandopensource  3 года назад +2

      Hi, thanks for watching. I don't think there is official helm chart for VPA.

    • @devopscommunity5321
      @devopscommunity5321 3 года назад

      @@justmeandopensource no they have that repo
      helm repo add cowboysysop cowboysysop.github.io/charts/
      helm install my-vertical-pod-autoscaler cowboysysop/vertical-pod-autoscaler --version 3.0.0
      artifacthub.io/packages/helm/cowboysysop/vertical-pod-autoscaler

  • @georgmohan
    @georgmohan Год назад +2

    could you please help, iam getting this error
    Status:
    Conditions:
    Last Transition Time: 2022-11-06T22:13:41Z
    Message: Cannot read targetRef. Reason: Deployment kube-system/my-app does not exist
    Status: True
    Type: ConfigUnsupported
    Last Transition Time: 2022-11-06T22:13:41Z
    Message: No pods match this VPA object
    Reason: NoPodsMatched
    Status: True
    Type: NoPodsMatched
    Last Transition Time: 2022-11-06T22:13:41Z
    Message: No pods match this VPA object
    Reason: NoPodsMatched
    Status: False
    Type: RecommendationProvided
    Recommendation:
    Events:
    trying on k8s 1.25.3

    • @justmeandopensource
      @justmeandopensource  Год назад

      Hi Mohan, thanks for watching. The error message says that it couldn't find a deployment named my-app. VPA resource act on the deployment that you specify but it couldn't find the deployment. Are you sure the deployment has been created and pods running?

  • @rmnobarra
    @rmnobarra 5 лет назад +1

    nice video man!! there's any content about git ops comming?

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Hi Leonardo, thanks for watching this video. I haven't looked at GitOps yet but many viewers asked for it. So soon I will learn and upload video. Cheers.

  • @rsrini7
    @rsrini7 4 года назад +2

    Hi Venkat. Thanks for the tutorial. I tried using the metrics-server in KIND (1master, 2 worker) cluster.
    kubectl top nodes (shows below errors)
    Default mode (no edit) "Error : metrics not available yet"
    with insecure-tls : Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io)
    Tried with helm charts too. Not able to fix.

    • @justmeandopensource
      @justmeandopensource  4 года назад +3

      Hi Srini, I had the same problem recently. Neither direct deployment nor helm deployment worked for metrics-server. I think its because the nodes are containers rather than complete machines, the metrics are not being collected. I then had to use vagrant environment to use metrics server. I will try it again this weekend and let you know if I succeed. Thanks.

  • @NitishSingh-ul1gu
    @NitishSingh-ul1gu 2 года назад

    Hi Venkat, awesome video! my question is that , actually approx i have done but one error showing .... Conditions:
    Last Transition Time: 2021-11-22T10:16:39Z
    Message: Cannot read targetRef. Reason: Unhandled targetRef apps/v1 / Rollout / my-rec-deployment, last error no matches for kind "Rollout" in group "apps"
    Status: True
    Type: ConfigUnsupported
    Last Transition Time: 2021-11-22T10:16:39Z
    Message: No pods match this VPA object
    Reason: NoPodsMatched
    Status: True
    Type: NoPodsMatched
    Last Transition Time: 2021-11-22T10:16:39Z
    Message: No pods match this VPA object
    Reason: NoPodsMatched
    Status: False
    Type: RecommendationProvided
    Recommendation:

  • @vatcharinkongsakul4478
    @vatcharinkongsakul4478 5 лет назад +3

    Hi Venkat,
    i want to use manage secrets tool hashicorp vault install with HA node
    can you make a video?
    thakyou.

  • @kewynakshlley
    @kewynakshlley 4 года назад +2

    I am doing a similar approach. I created a nodejs app that receives requests from a benchmark tool and generate cpu and mem utilization to trigger the vpa. Additionally I created a service manifest to expose my app using load balacer, also I pointed to the image of my app and removed "command" and "args" of the deployment file. When the load is generated I can see through the minikube dashboard that the cpu and mem usage is increasing and reaching the limit but the vpa doesn't recreate the conteiner with more resources. Any ideas?

    • @kewynakshlley
      @kewynakshlley 4 года назад +1

      stackoverflow.com/questions/59850612/vertical-pod-autoscaler-not-working-when-receiving-load-from-a-benchmark-tool

    • @justmeandopensource
      @justmeandopensource  4 года назад +2

      Hi Kewyn, thanks for watching. When you create the VPA resource, have you changed the updatepolicy to either Auto or Recreate? In this video, I showed with UpdatePolicy set to Off which will show the recommendations but won't take any action on increasing the resource limits. Then changed the updatepolicy to auto to actually increase the resource limits under load.

    • @kewynakshlley
      @kewynakshlley 4 года назад +1

      @@justmeandopensource Yes, I did it. I copied and pasted everything on Stackovflw. It is defined as "Auto" but not nothing happens.

    • @justmeandopensource
      @justmeandopensource  4 года назад +2

      @@kewynakshlley Hmm strange. Can you try it on a different cluster? Is metrics server running fine?

    • @kewynakshlley
      @kewynakshlley 4 года назад +1

      ​@@justmeandopensourceI am testing it using minikube. Metrics-server is running fine. It is possible to be something related to the service load balancer?

  • @machireddyshyamsunder987
    @machireddyshyamsunder987 2 года назад +1

    very useful...

  • @ashutoshojha
    @ashutoshojha 5 лет назад +2

    I want to use HPA on rabbitmq queue using custom metrics.
    I tried, but could not deploy it properly..
    Can you look into that?

    • @justmeandopensource
      @justmeandopensource  5 лет назад +4

      Hi Ashutosh, thanks for watching this video. I haven't tried auto-scaling based on custom metrics yet. I will do that one soon. Cheers.

    • @ashutoshojha
      @ashutoshojha 5 лет назад +1

      @@justmeandopensource I will be waiting for that video.😊

    • @justmeandopensource
      @justmeandopensource  5 лет назад +2

      @@ashutoshojha Cheers.

    • @kewynakshlley
      @kewynakshlley 5 лет назад +1

      I will be waiting too xD

    • @justmeandopensource
      @justmeandopensource  5 лет назад +2

      @@kewynakshlley Cheers.. Thanks for watching.

  • @abhinavmishra2328
    @abhinavmishra2328 4 года назад +1

    Hi. Really nice explanation. But I am having problems right after running ./vpa-up.sh. My vpa-recommender pod is always in pending state. Like this:
    kube-system vpa-admission-controller-6d449d5876-sld4l 1/1 Running 0 19m 192.168.32.5 kworker
    kube-system vpa-recommender-6cb878fdc7-s6px8 0/1 Pending 0 19m
    kube-system vpa-updater-6c9d65dd6f-9dt4z 1/1 Running 0 19m 192.168.32.4 kworker
    Thanks !

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      Hi Abhinav, thanks for watching. Is there anything that you are doing differently to the steps in this video? If you are following the exact steps and seeing this issue, I can re-test this video. Otherwise your environment might be different to mine trying to reproduce. More information would be helpful. Cheers.

  • @kewynakshlley
    @kewynakshlley 5 лет назад +1

    It is possible to test it using minikube? Because when I try to do the gcp tutorial for VPA I got an error: error: unable to recognize "my-rec-vpa.yaml": no matches for kind "VerticalPodAutoscaler" in version "autoscaling.k8s.io/v1"

    • @justmeandopensource
      @justmeandopensource  5 лет назад +1

      Hi Kewyn, did you managed to get metrics-server working in your minikube environment? May I know how you installed metrics-server? Did you follow the step in this video or did you do "minikube addons enable metrics-server"?
      Is "kubectl top nodes" showing metrics?
      Thanks.

    • @justmeandopensource
      @justmeandopensource  5 лет назад +2

      Hi Kewyn, I just tested it on my Minikube environment and its working perfectly fine. However you need to do one slight change in the vpa api version. When you deploy my-rec-vpa, use v1beta2 instead of v1.
      You can see more details of my testing in the below pastebin link.
      pastebin.com/DLMwNidf
      Please let me know if it worked.
      Thanks.

    • @kewynakshlley
      @kewynakshlley 4 года назад +1

      @@justmeandopensource I did it and now it is working fine. Thank you!

    • @justmeandopensource
      @justmeandopensource  4 года назад +2

      @@kewynakshlley Cool.

  • @vishalvarshney961
    @vishalvarshney961 3 года назад +1

    When load becomes down, does it scale down to original CPU and memory?

    • @justmeandopensource
      @justmeandopensource  3 года назад +1

      What do you mean by original cpu and memory?

    • @vishalvarshney961
      @vishalvarshney961 3 года назад +1

      @@justmeandopensource when load goes down and container are not in much use ,does hpa recommendation get back to CPU 100m and memory 50mi and new pod if created has this configuration?

    • @justmeandopensource
      @justmeandopensource  3 года назад +1

      @@vishalvarshney961 I only tested hpa. In case of vpa, the controller will get a cpu/mem recommendation based on the current load and will modify the pods accordingly. You could test it yourself.

  • @jiaxingdu1840
    @jiaxingdu1840 4 года назад

    I ran into a problem, VPA keeps terminating old pods and creating a new pod with specified resource request instead of recommended request, it seems that vpa detected a pod doesn't have recommended resource request, but failed to transfer the recommended request to new pod. Any idea about the problem?

    • @justmeandopensource
      @justmeandopensource  4 года назад

      Hi Jiaxing, thanks for watching. I haven't encountered that issue yet unfortunately to be able to assist you. It must be your configurations thats causing this. Have you tried that with any other deployments? Is it happening to all deployments using VPA?

  • @VinuezaDario
    @VinuezaDario 4 года назад +1

    Hi, I have a this error: metrics-server-775577f8dc-mdmk4 0/1 Error 3 3m7s

    • @VinuezaDario
      @VinuezaDario 4 года назад +1

      I execute: kubectl -n kube-system logs metrics-server-775577f8dc-mdmk4

    • @VinuezaDario
      @VinuezaDario 4 года назад +1

      this error: I1214 21:23:45.230478 1 serving.go:312] Generated self-signed cert (apiserver.local.config/certificates/apiserver.crt, apiserver.local.config/certificates/apiserver.key)
      Error: Get 10.96.0.1:443/api/v1/namespaces/kube-system/configmaps/extension-apiserver-authentication: dial tcp 10.96.0.1:443: i/o timeout

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      Okay. Could you please wait for one more week. I am going to release another video on how to deploy metrics-server using Helm.

    • @VinuezaDario
      @VinuezaDario 4 года назад +1

      It worked, my problem was that I was working with version 3.6, I change the metricas version to 3.4, and it ok worked, Thanks!

    • @justmeandopensource
      @justmeandopensource  4 года назад +1

      @@VinuezaDario Glad that you got it resolved. Cheers.