Timeout for Kubectl exec Timeout for Kubectl exec kubernetes kubernetes

Timeout for Kubectl exec


You have a typo, try:

kubectl exec -it pod_name bash --request-timeout=0 -n test

See kubectl official documentation about request-timeout

--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")

Note that "0" is already the default.