<p>I'm having k8s cluster with 3 minions, master and haproxy in front. When I use </p>

<pre><code>kubectl exec -p $POD -i -t -- bash -il
</code></pre>

<p>for accessing bash in the pod (it is a single container in this case) I get in and after something like 5 mins I get dropped out of the terminal. If I reenter the container I can see my old bash process running, with a new started for my new connection. Is there a way to prevent this from happening? When I'm using docker exec it works fine and doesn't drop me so I guess it is from kubernetes. </p>

<p>As a bonus question - is there a way to increase the characters per line when using kubectl exec? I get truncated output that is different from docker exec.</p>

<p>Thanks in advance!</p>

<p>It is a known issue - 
<a href="https://github.com/kubernetes/kubernetes/issues/9180" rel="nofollow">https://github.com/kubernetes/kubernetes/issues/9180</a></p>

<p>The kubelet webserver times out.</p>
