<p>I'm running into issues because my containers are producing too much log output. This apparently causes the reserved space to run out and evicts the pods with message <code>The node was low on resource: ephemeral-storage. Container XYZ was using 1412Ki, which exceeds its request of 0.</code></p>
<p>Is there any way to tell kubernetes to just forget about old logs? I would be perfectly fine with saying &quot;10MB of logs per pod are more than enough&quot;, but I can't find any place to specify such a thing.</p>
<p>Whether this is a limit in time or size does not matter to me that much, as long as I can keep my pods alive. This is for a development environment, so log retention is not crucial at all.</p>

<p>I'm assuming the container engine is docker in which case, you can configure docker to limit the logs written by your pod(s) container(s).</p>
<p><a href="https://docs.docker.com/config/containers/logging/configure/" rel="nofollow noreferrer">https://docs.docker.com/config/containers/logging/configure/</a></p>
