<p>Is there a way that I can get release logs for a particular K8s release within my K8s cluster as the replica-sets related to that deployment is no longer serving pods?</p>
<p>For an example <code>kubectl rollout history deployment/pod1-dep</code> would result</p>
<p>1</p>
<p>2 &lt;- failed deploy</p>
<p>3 &lt;- Latest deployment successful</p>
<p>If I want to pick the logs related to events in <code>2</code>, would it be a possible task, or is there a way that we can such functionality with this.</p>

Pasan Chamikara
<p><em>This is a Community Wiki answer, posted for better visibility, so feel free to edit it and add any additional details you consider important.</em></p>
<p>As David Maze rightly suggested in his comment above:</p>
<blockquote>
<p>Once a pod is deleted, its logs are gone with it. If you have some
sort of external log collector that will generally keep historical
logs for you, but you needed to have set that up before you attempted
the update.</p>
</blockquote>
<p>So the answer to your particular question is: <strong>no, you can't get such logs once those particular pods are deleted.</strong></p>
