The node was low on resource: ephemeral-storage The node was low on resource: ephemeral-storage kubernetes kubernetes

The node was low on resource: ephemeral-storage


Pods that use emptyDir volumes without storage quotas will fill up this storage, where the following error is present:

eviction manager: attempting to reclaim ephemeral-storage

Set a quota limits.ephemeral-storage, requests.ephemeral-storage to limit this, as otherwise any container can write any amount of storage to its node filesystem.

A sample resource quota definition

apiVersion: v1kind: ResourceQuotametadata:  name: compute-resourcesspec:  hard:    pods: "4"     requests.cpu: "1"     requests.memory: 1Gi     requests.ephemeral-storage: 2Gi     limits.cpu: "2"     limits.memory: 2Gi     limits.ephemeral-storage: 4Gi

Another reason for this issue can be log files eating disk space. Check this question


You can increase the size of the EBS volume which is attached and restart the EC2 instance to get that effect.