Skip to content

Instantly share code, notes, and snippets.

@innyso
Last active April 11, 2020 12:48
Show Gist options
  • Save innyso/e256690ebaaea2f55670959b5d3ae8fe to your computer and use it in GitHub Desktop.
Save innyso/e256690ebaaea2f55670959b5d3ae8fe to your computer and use it in GitHub Desktop.
#k8s #resource #requet #limit

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment