<p>We have CentOS based infra for kubernetes and also using Openshift on top of tis. We have terminated a pod and now its not visible on master controller any more. However we are willing to analyze its logs.Can we still access its logs?How ? </p>

knowdotnet
<p>Containers together with its logs get deleted when you issue a <code>kubectl delete pod &lt;pod-name&gt;</code>. You can use something like <a href="https://www.fluentd.org/" rel="noreferrer">Fluentd</a> or <a href="https://github.com/gliderlabs/logspout" rel="noreferrer">logspout</a> to pipe your logs to say an <a href="https://www.elastic.co/elk-stack" rel="noreferrer">ELK</a> or an <a href="https://docs.fluentd.org/v0.12/articles/docker-logging-efk-compose" rel="noreferrer">EFK</a> stack.</p>
