In this article
Budget all measured local writers and verify the node filesystem layout before treating scratch size as total ephemeral use.
A model Pod writes little to its working directory but is evicted for local storage use. Scratch space is only one contributor. Container writable layers, logs and disk-backed emptyDir usage can belong to the local ephemeral-storage budget under the node’s supported accounting layout.
Inventory every local writer
Map model downloads, temporary unpacking, generated outputs, container logs and auxiliary processes to their actual paths. A file outside the designated scratch mount can still occupy the container’s writable layer. A log-forwarding sidecar does not automatically stop local log growth. Preserve safe byte counts and paths rather than private request content.
Read requests and limits separately
An ephemeral-storage request participates in placement, while a limit defines an enforcement boundary under supported measurement. A small request does not reserve every byte a later download might consume. A large limit does not create physical storage. Read both the admitted container settings and the Pod’s combined usage, including shared local volumes.
Verify the storage layout
Kubelet accounting depends on supported filesystem and runtime arrangements. Identify the filesystems holding node data, writable layers and image data. Do not assume a separate mounted disk under a familiar directory is automatically measured as expected. A dashboard’s free-space number can describe a different filesystem from the one actually filling.
Separate storage pressure from memory
A memory-backed emptyDir belongs to memory accounting rather than the same disk budget. Persistent volumes also have a distinct lifecycle. Classify the actual mount before changing a limit. Raising a RAM limit cannot repair a full node filesystem, and increasing ephemeral-storage does not provide more memory for a tmpfs scratch area.
Test bounded scratch and logs
In an isolated fixture, generate disposable scratch data and controlled logs while observing the supported usage counters. Confirm which boundary reports or terminates excessive use, then test cleanup and a replacement Pod. Acceptance means the declared budget covers known writers and the measured filesystem. It does not make local scratch durable, guarantee exact detection timing or establish backup merely because a Pod survived one burst of temporary data.
Primary references
Resource Management for Pods and Containers.
Related reading: OOMKilled or Evicted: identifying why a Pod stopped; Read-only container will not start: where to allow temporary and cache writes.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.