<p>I'm running into issues with our Kubernetes deployment. Recently we are running into a problem with one of the pods being restarted frequently.</p>
<p>The service inside is using C++, with Google Logging and should dump a stacktrace on a crash (it does do that when run locally).</p>
<p>Unfortunately, the only log message I was able to find, related to the pod restart is from <code>containerd</code>, just saying &quot;shim reaped&quot;.</p>
<p>Do I need to turn on some extra logging/monitoring to have the reasons for restart retained?</p>

Šimon Tóth
<p>Your can check crashed pod log by running</p>
<pre><code>$ kubectl logs -f &lt;pod name&gt; -n &lt;namespace&gt; --previous
</code></pre>
