Pod emptyDir volume exceeds sizeLimit. Fix by increasing limit, reducing data written, or using persistent volume.
Fixes EMPTYDIR_LIMIT_EXCEEDED
kubectl get pod -n <namespace> <pod-name> -o yaml | grep -A 5 emptyDirkubectl get pod -n <namespace> <pod-name> -o yaml | grep -A 5 emptyDiremptyDir volume size limit exceeded, pod evicted
emptyDir volumes can fill up quickly if applications write logs or temporary files. When limit is exceeded, pod is evicted.
kubectl get pod -n <namespace> <pod-name> -o yaml | grep -A 5 emptyDirvolumes:
- name: tmp
emptyDir:
sizeLimit: 500Mi # IncreasedConfigure log rotation and cleanup.
Use PVC for data exceeding emptyDir limits.
kubectl exec -n <namespace> <pod-name> -- df -h /tmpemptyDir with medium: Memory defaults to 50% of node memory.