<p>The REST API requests , <code>GET , POST , PUT</code> etc to Kubernetes API server are request , responses and simple to understand , such as <code>kubectl create &lt;something&gt;</code>. I wonder how the API server serves the pod logs when I do <code>kubectl logs -f &lt;pod-name&gt;</code>  ( and similar operations like <code>kubectl attach &lt;pod&gt;</code> ), Is it just an http response to <code>GET</code> in a loop?</p>

Ijaz Ahmad
<p>My advice is to always check what <code>kubectl</code> does under the cover, and for that use <code>-v=9</code> with your command. It will provide you with full request and responses that are going between the client and the server. </p>
