<p>If I have a buggy app in a container that is constantly writing to an emptyDir volume it could use up all the space on the worker node and affect the performance of other pods / containers on the node. Thus breaking the expectation that containers are isolated from each other what one container does should not negatively impact other containers on the node.</p>

<p>Is there a way to limit the amount of disk space used by a emptyDir volume (not the RAM based emptyDir type)?</p>

<p>You can set <code>sizeLimit</code> on the volume (see <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#emptydirvolumesource-v1-core" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#emptydirvolumesource-v1-core</a>). Setting this will, once the volume is full, evict the pod.</p>
