What is the purpose of Kubernetes resource requests and limits, and what happens when a container exceeds its CPU limit?
-
A
Requests are used for scheduling decisions (the minimum guaranteed resources); limits cap usage. A container that exceeds its CPU limit is throttled (not killed), while exceeding memory limits causes OOMKill
-
B
Both requests and limits define the maximum resources a container can use; exceeding either causes the pod to be evicted
-
C
Requests define the initial allocation; limits define the maximum. Exceeding CPU limits kills the container, just like exceeding memory limits
-
D
Requests and limits are identical unless the QoS class is set to Burstable, in which case limits can exceed requests