<p>Any idea to view the log files of a crashed pod in kubernetes?
My pod is listing it's state as "CrashLoopBackOff" after started the replicationController. I search the available docs and couldn't find any.</p>

<p>Assuming that your pod <strong>still exists:</strong></p>
<p><code>kubectl logs &lt;podname&gt; --previous</code></p>
<blockquote>
<p>$ kubectl logs -h<br />
-p, --previous[=false]: If true, print the logs for the previous instance of the container in a pod <strong>if it exists</strong>.</p>
</blockquote>
