I have been using k3d, moving a small app from a vm to k3s. When I start a shell in the application pod using “kubectl exec -it podname – bash”, it times out after a certain amount of time if there is no activity and disconnects. One bash shell command I use doesn’t have output for a while so the connection times out consistently. I can start a background process that will output a space every 59 seconds, and that keeps the connection alive until my shell task is done. I have not figured out how to adjust this timeout. Is there a setting somewhere that I can change that I have not found yet?
Related Topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Timeout on kubectl exec on with nginx ssl termination | 4 | 3503 | July 12, 2017 | |
Kubectl exec works fine in Rancher but timeout in Powershell | 1 | 498 | March 1, 2022 | |
Timeouts after 60 seconds when connecting to k8s clusters managed by rancher | 0 | 597 | September 21, 2020 | |
Rancher Execute Shell disconnected | 2 | 385 | August 9, 2024 | |
Systematic coredns issue after a few minutes | 0 | 387 | January 3, 2024 |