<pre><code>kubectl logs &lt;pod-id&gt;
</code></pre>

<p>gets latest logs from my deployment - I am working on a bug and interested to know the logs at runtime - How can I get continuous stream of logs ?</p>

<p>edit: corrected question at the end.</p>

<pre><code>kubectl logs -f &lt;pod-id&gt;
</code></pre>
<p>You can use the <code>-f</code> flag:</p>
<p><code>-f, --follow=false: Specify if the logs should be streamed.</code></p>
<p><a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs" rel="noreferrer">https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs</a></p>
