Menu

why your pod memory limits keep crashing and how to fix them
📰

why your pod memory limits keep crashing and how to fix them

DEV Community: go·evan·4 days ago
#5ofSHcCc
#devtogo#devto#dev#cgroup#memory
Reading 0:00
15s threshold

you've probably seen a pod go into CrashLoopBackOff after a sudden traffic spike, even though the container's memory request matches the node's capacity. the root cause is an invisible cgroup pressure that the scheduler can't see, and a missing hard limit that lets the process eat the node's RAM until the kernel OOM killer steps in.

the hidden pressure

kubernetes only schedules based on the request field; if you omit a hard limit , the container can exceed its request without any back‑pressure. the node's cgroup will then balloon, starving sibling pods and eventually triggering a node‑wide OOM.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.