Requests and limits

requests indicate the CPU and memory resources reserved for a container, which the scheduler uses to choose a node. limits set the maximum: exceeding the memory limit gets the container killed (OOMKilled), exceeding the CPU limit throttles it.

Example

resources:
  requests:
    cpu: 100m
    memory: 128Mi
  limits:
    memory: 256Mi

Related concepts

The whole glossary