Setting Resource Requests and Limits in Kubernetes

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

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

  • @ToallpointsWest
    @ToallpointsWest 4 года назад +11

    Well presented, and exactly what I was looking for Thank you!

  • @ramonkallas
    @ramonkallas 6 лет назад +39

    3:07 almost spilled coffee on myself (with headphones on)

    • @abhigp27
      @abhigp27 5 лет назад

      :D :D

    • @iammrchetan
      @iammrchetan 5 лет назад

      hahaha...correct

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

      Well, as least he got our attention 😅

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

      so did I

    • @azy22222
      @azy22222 6 месяцев назад

      Me also - then I read this comment and almost spilled my coffee from laughter!!!

  • @riskylovers
    @riskylovers 9 месяцев назад

    Here, is memory component similar to RAM only right?

  • @genericusername337
    @genericusername337 2 года назад +2

    if I'm using GKE, where do I go to evaluate how much a resource should request or be limited by?

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars 5 месяцев назад +1

    simple and to the point :)

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

    Sandeep, I believe having development and production seperated by namespaces is not a good practice. The development load will affect production load. What do you think about it?

  • @Shabasky1
    @Shabasky1 6 лет назад +2

    This is just what I was studying last night! Awesome!

  • @danielriedl1419
    @danielriedl1419 2 года назад

    Thanks Sandeep, perfect presentation!

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

    Great presentation!

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

    Is there any way to restrict some core shall not be used by Kubernetes on host machines. For example Server-1 having core 0-31 where I wanted to keep 1,2,3,4 CPU as isolated and core 1,2,3,4 shall not be used by K8s. any configuration for this goal ?

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

    so touching for an excellent video

  •  6 лет назад +3

    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?

    • @91harshal
      @91harshal 5 лет назад

      use prometheus with service mesh like linkerd/istio

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

    thanks, short and clear

  • @laszlo.laszlo
    @laszlo.laszlo 4 года назад

    Hello! This's a very clear video about resources. Thank you very much. Keep going.

  • @durza9390
    @durza9390 2 года назад

    Very well explained!

  • @manikanthkommoju3176
    @manikanthkommoju3176 6 лет назад +1

    is request and limit confined to containers or pods? because if i specify request and limit values to pod where pod have multiple containers then in that case will all the containers get adequate amount of resource?

    • @mark-w6s5p
      @mark-w6s5p 5 лет назад +1

      As you can see in docs kubernetes.io/docs/reference/generated/kubernetes-api/v1.14/#container-v1-core resources are specified for containers. Pod Resources consists of resources of all pod's containers

  • @mefirst5427
    @mefirst5427 2 года назад

    Very well presented information! Why couldn't the Kubernetes documentation just say "milli-cores" explicitly, I had to dig around to find that.

  • @jw9308
    @jw9308 5 лет назад

    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.

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

    Can you tell us what is hard limit in quota

  • @LukeNimtz
    @LukeNimtz 6 лет назад +9

    too bad you can't throttle memory with swap 🤔

  • @johngrabner
    @johngrabner 11 месяцев назад

    What about GPU resources? These are often more scarce than CPU memory of CPU cylces.

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

    thank you for such a great video. you're amazing

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

    throttling and the area between over-requested but below a hard limit is still unclear on what kubernetes really does

  • @zocratiko
    @zocratiko 6 лет назад

    Thanks! In my case I had to use Mi as unity instead of Mib.

  • @marwan986
    @marwan986 6 лет назад

    Keep up the good work 👍

  • @er.rajeevdhiman1494
    @er.rajeevdhiman1494 4 года назад

    What about swap RAM ?

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

    what about GPU though?

  • @Holms
    @Holms 6 лет назад

    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)

    • @PeterMalina
      @PeterMalina 6 лет назад

      The "default" are default limits of CPU and memory, while "defaultRequest" are default requests for the CPU and memory. You can think of "requests" as: Assign this much CPU and memory to the given container. So if you set CPU requests to e.g. 500m, there will always be half of the core reserved for you container on the node where it runs

    • @IndrajitRajtilak
      @IndrajitRajtilak 6 лет назад +1

      - There are only two kinds of Resources that can be Requested/Limited in K8s (as per the video atleast): Memory & CPU
      - 'defaultRequest' is specified with the 'limits' of K8s. When you are specifying limits, using 'defaultRequest' you can specify what is the default CPU and Memory 'request' by each Container, IF the container does not define one explicitly.
      - Let's say you generate a YAML file for a container and don't mention the CPU and Memory request explicitly, and schedule it on a node which has the 'defaultRequest' set; then the container gets resources described by the 'defaultRequest'.
      Hope this makes sense :)

    • @manikanthkommoju3176
      @manikanthkommoju3176 6 лет назад

      are we imposing resource constraints on pod/container?

  • @SatyanarayanaBolenedi
    @SatyanarayanaBolenedi 5 лет назад

    Thanks!!

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

    have we all seen shifted tabulation at 5:15 ?)

  • @er.rajeevdhiman1494
    @er.rajeevdhiman1494 4 года назад

    My application needs SwAp Memory

    • @Sai-ik8hc
      @Sai-ik8hc 4 года назад

      but kuberntes doesnt support swap memory right

  • @pengdu7751
    @pengdu7751 6 лет назад +2

    great video. not sure though why the human appearance is necessary