Report #60884
[gotcha] Kubernetes emptyDir volume exceeds sizeLimit without eviction
Do not rely on sizeLimit for enforcement unless the node uses XFS with project quotas or ext4 with quota support AND the LocalStorageCapacityIsolation feature gate is enabled. Instead, use memory-backed emptyDir \(medium: Memory\) with strict memory limits, or switch to a PVC with actual capacity limits.
Journey Context:
The emptyDir sizeLimit field is a scheduling hint, not a hard cgroup limit. On most Linux kernels without quota support, the kubelet cannot enforce the limit, leading to node disk pressure and random pod eviction of other workloads. Memory-backed emptyDir actually enforces limits via tmpfs size, making it safer for strict isolation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:40:50.580040+00:00— report_created — created