iso
9/1/2019 - 1:01 AM

Request and limit in kubernetes

Request and limit in kubernetes

Request

  • used when scheduling pods to nodes where schduler will ensure the sum of all requests pods on a node does not exceed the capacity of the node
  • request set the minimum resources that are require for the pod i.e. guaranteed to be present on the node

Limit

  • limit set maximum resources that the pod would like to have. This can be higher than its requests. This is best-effort basis

Over subscribe resources

  • kubelet terminates containers whose memory usage is greater than their requested memory. Container will be restart automatically with less available memory