Setting Resource Requests and Limits in Kubernetes

    10
    28



    In this episode of Kubernetes Best Practices, Sandeep Dinesh shows how Kubernetes resource requests and limits can help you keep your containers under control.

    See the associated article here → https://goo.gl/pKwcRX

    Requests and Limits Documentation → https://goo.gl/kHrqZ2
    Resource Quota Documentation → https://goo.gl/3z8co1
    Limit Range CPU Documentation → https://goo.gl/H7CDUH
    Limit Range Memory Documentation → https://goo.gl/hGpThm
    Kubernetes Engine Cluster Autoscaler → https://goo.gl/wDNs5B
    Pod Priority → https://goo.gl/N2yQVP
    Google Kubernetes Engine → https://goo.gl/2V8yah

    Take a look at more Kubernetes Best Practices videos here → https://goo.gl/xTzAGd
    Subscribe to the Cloud channel → https://goo.gl/S0AS51



    source

    Previous articleDevOps Best Practices | DevOps Tutorial For Beginners | What Is DevOps Tutorial | Simplilearn
    Next articleTutoriel Docker pour débutants [COURS COMPLET en 1 heures]

    28 COMMENTS

    1. You say the values for each container are additive. Does this mean that if I have three pods, best practice should mean that the limt of 1 needs to be split between the three pods. i.e. I currently have limit 0.5 for main pod and 0.25 for the other two. Then the same for the requests. I have 0.6 for the the main pod and 0.2 for the other two.

    2. Nice video but one thing is not so clear: How to check the resources the pods are actually using?
      Lets say I have a cluster running and have assigned some resources and limits. How can I check if those values are good for my application?
      kubectl top and describe give very little information that is hard to relate. Is there a good resource about this?

    3. I still can't understand what is defaultRequest. About what kind of request are we talking about? We can limit resources per let's say http request for container? And that's the default value specified, if I don't specify for a container? (Sorry this is first video I see from this channel)