<p>As a preface, the reason I am asking this question is that my application wants something similar: store logs on the file system of the node hosting the pods.</p>
<p>I read in <a href="https://kubernetes.io/docs/concepts/cluster-administration/logging/#system-component-logs" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/cluster-administration/logging/#system-component-logs</a> this:</p>
<blockquote>
<p>System components inside containers always write to the /var/log directory, bypassing the default logging mechanism. They use the klog logging library.</p>
</blockquote>
<p>Does <code>klog</code> somehow has a special access to /var/log? How? My application now uses standard syslog logging, and on containers this ends up writing to <code>stderr</code>.</p>

Sam Habiel
<p>The question turns out to be unneeded. I looked carefully, and the logs of my application are ALSO in <code>/var/log/containers</code>. It's just that they disappear when the pods are deleted. That's my next problem to solve.</p>
