<p>I have configured kubernetes cluster where it has 2 masters, 3 etcds and 20 nodes. Masters fronted by a load balancer. I followed up <a href="https://coreos.com/kubernetes/docs/latest/getting-started.html" rel="noreferrer">https://coreos.com/kubernetes/docs/latest/getting-started.html</a> when creating the cluster. Everything work as expected. I could deploy pods without issue and pods running fine. But when I tried to tail the logs, kubectl suddenly return unexpected EOF and stop tailing. Again I have to execute kubectl logs command to continue. This is very annoying as it not even keep one minute.</p>

<p>The command which I execute is,
<code>kubectl logs -f --tail=100 &lt;pod_name&gt;</code> or <code>kubectl logs -f &lt;pod_name&gt;</code></p>

<p>After less than one minute it return, <code>error: unexpected EOF</code></p>

<p>Appreciate your input to sort out the issue.</p>

<p>AWS ELB has a default "IdleTimeout" of 60 seconds, that can be increased up to 3600 seconds. I can confirm that increasing this value solve this issue.</p>

<p>Here you can find more information about it:
<a href="http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html</a></p>
