title: Kubernetes - How to read logs that are written to files in pods instead of stdout/stderr?
body: <p>I have a pod in a state of <code>CrashLoopBackOff</code>, the logs I'm seeing from <code>kubectl logs &lt;pod-name&gt; -p</code> present only a partial picutre. Other logs are found in other files (e.g. <code>/var/log/something/something.log</code>).</p>
  
  <p>Since this pod is crashed, I can't <code>kubectl exec</code> into a shell there and look at the files.</p>
  
  <p>How can I look at the log files produced by a container that is no longer running?</p>
  
  <p>To be more specific, I'm looking for log files file under <code>$HOME/logs/es.log</code> (in the container that failed)</p>