<ol>
<li><p>pod.spec.containers.resources.limits.ephemeral-storage</p>
</li>
<li><p>pod.spec.volumes.emptyDir.sizeLimit</p>
</li>
</ol>
<p><strong>Scenario</strong>
Say I have 2 containers. Both the containers utilize the same 2 volumes.</p>
<p>volume 1 -&gt; sizeLimit = 10Ki</p>
<p>volume 2 -&gt; sizeLimit = 20Ki</p>
<p>container 1 (limits.ephemeral-storage) -&gt; 4Ki</p>
<p>container 2 (limits.ephemeral-storage) -&gt; 4Ki</p>
<p>When will the pod get evicted with these configs?</p>

Vikas NS
<p>Pods use ephemeral local storage for scratch space, caching, and logs. The kubelet can provide scratch space to Pods using local ephemeral storage to mount <strong>emptyDir</strong> volumes into containers.</p>
<p>If a Pod is using more ephemeral storage than you allow it to, the kubelet sets an eviction signal that triggers Pod eviction.</p>
<p>For container-level isolation, if a container's writable layer and log usage exceed its storage limit, the kubelet marks the Pod for eviction.</p>
<p>In your case when it is exceeding the limit associated with the container it will be set for eviction.</p>
<p>More details here - <a href="https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/</a></p>
