<p>All the pods of a node are on <strong>Evicted</strong> state due to "The node was low on resource: ephemeral-storage."</p>

<pre><code>portal-59978bff4d-2qkgf                            0/1     Evicted   0          14m
release-mgmt-74995bc7dd-nzlgq                      0/1     Evicted   0          8m20s
service-orchestration-79f8dc7dc-kx6g4              0/1     Evicted   0          7m31s
test-mgmt-7f977567d6-zl7cc                         0/1     Evicted   0          8m17s
</code></pre>

<p>anyone knows the quick fix of it. </p>

Dasarathi Swain
<p>Pods that use <a href="https://kubernetes.io/docs/concepts/storage/volumes/#emptydir" rel="noreferrer">emptyDir</a> volumes without storage quotas will fill up this storage, where the following error is present:</p>

<pre><code>eviction manager: attempting to reclaim ephemeral-storage
</code></pre>

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

<p>A sample resource quota definition </p>

<pre><code>apiVersion: v1
kind: ResourceQuota
metadata:
  name: compute-resources
spec:
  hard:
    pods: "4" 
    requests.cpu: "1" 
    requests.memory: 1Gi 
    requests.ephemeral-storage: 2Gi 
    limits.cpu: "2" 
    limits.memory: 2Gi 
    limits.ephemeral-storage: 4Gi
</code></pre>

<p>Another reason for this issue can be log files eating disk space. Check this <a href="https://stackoverflow.com/questions/54203646/kubernetes-how-to-increase-ephemeral-storage">question</a></p>
