如何设置 kubectl exec 命令的超时时间?
下面的命令不起作用
kubectl exec -it pod_name bash --requrest-timeout=0 -n test
最佳答案
你有一个错字,试试:
kubectl exec -it pod_name bash --request-timeout=0 -n test
参见 kubectl official documentation 关于请求超时
--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")
请注意,“0”已经是默认值。
关于kubernetes - Kubectl exec 超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51278326/