What is the difference between the limit defined under "requests" section and li . . .

madhusmita:
what is the difference between the limit defined under “requests” section and limit defined under “memory” section?

ashish goel:
See below:

spec:
  containers:
  - name: app
    image: images.my-company.example/app:v4
    resources:
      requests:
        memory: "64Mi"
        cpu: "250m"
      limits:
        memory: "128Mi"
        cpu: "500m"

Sangeetha Radhakrishnan:
Requests:
To schedule a pod in a node, the node must have requested free memory and cpu to pod to run. If a node does not meet the request requirement the pod will not scheduled in that node.
Limits:
Where as once the pod is scheduled the container in the pod can consume maximum of nodes memory and cpu as per limits configuration. A container cannot consume more than the limit specified even though a node has. By any time if a container consumes more than the limit, it will be terminated.