Looking to prevent a run-away pod or container from using all resources on the system. For instance, one pod uses up all of the resources on one machine causing it to timeout and fail, then jumping to the next node and causing the same issue until the entire cluster goes into a pending state.
- Platform9 Managed Kubernetes - All Versions
- Resource requests and limits are ways in Kubernetes by which you can restrict CPU and Memory usage of your containers/pods as per your requirement.
- Once implemented within your application specifications, the node where the Pod is running if has enough resource available, it's possible (and allowed) for the container to use more resources than it's
requestspecified value. However, a container is not allowed to use more than its resource
- From a Scheduling perspective, when one specifies the resource request for Containers in a Pod spec, the scheduler uses this information to decide which node to place the Pod on. However, when one specifies a resource limit for a Container, kubelet will enforce those limits so that the running container is not allowed to use more of that resource than the limit one sets.