Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How To Prevent a Run Away Pod or Container From Using All Resources on the Node
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
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.
Environment
- Platform9 Managed Kubernetes - All Versions
Procedure
- 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 resourcelimitspecified value. - 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.
Additional Information
- You can read more about this in detail here Managing Resources for Containers.
- For further illustrations with examples for both resource types details, see Assign Memory Resources and Assign CPU Resources.
- Consider reserving some CPU and memory resources for system processes by referring to How-To Implement CPU and Memory System Reservation for Kubernetes Nodes
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message