<p>How can I set the timeout for the kubectl exec command ?</p>

<p>The below command does not work</p>

<pre><code>kubectl exec -it pod_name bash --requrest-timeout=0 -n test
</code></pre>

tomar
<p>You have a typo, try:</p>

<pre><code>kubectl exec -it pod_name bash --request-timeout=0 -n test
</code></pre>

<p>See <a href="https://kubernetes.io/docs/reference/kubectl/kubectl/" rel="nofollow noreferrer">kubectl official documentation</a> about request-timeout</p>

<pre><code>--request-timeout string           The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
</code></pre>

<p>Note that "0" is already the default.</p>
