<p>I'm planning for a very high speed applications on kubernetes ,but I encountering performance issues of the kubernetes pod console logs.</p>

<p>When some pod writing console log, he writes it to a file(disk) under the hood and rotates it.</p>

<p>How can I config kubernetes writes the console logs to the RAM instead (rotating aswell ofcourse and shows me the last XX number of logs).</p>

Kfir Fersht
<p>You should check <a href="https://kubernetes.io/docs/concepts/storage/volumes/#emptydir" rel="nofollow noreferrer">emptyDir</a> and set </p>

<pre><code>emptyDir:
  medium: "Memory"
</code></pre>

<p>and then do whatever you need with your logs, or go with <code>hostPath</code> and use <code>/dev/shm</code>.</p>
