I am seeing an issue with Lens terminal where it cannot exec into pod.
exec kubectl exec -i -t -n NAMESPACE POD-NAME -c CONT_NAME -- sh -c "clear; (bash || ash || sh)"
above command works in shell outside Lens terminal but fails with below error in Lens Terminal.
Error in Terminal
error: unable to upgrade connection: error dialing backend: dial tcp x.x.x.x:443: connect: connection timed out Terminal will auto-close in 15 seconds ...
E0628 07:06:09.072867 241041 proxy_server.go:147] Error while proxying request: error dialing backend: dial tcp x.x.x.x:443: connect: connection timed out +18s
Here, I am trying to connect to GKE cluster via proxy. I have set the proxy-url in kube config. Lens can connect to cluster successfully and list all workloads, I am having issue with Lens Terminal pod exec only, pod Logs also works fine.
I have tried to set HTTPS_PROXY env vars but still its same.
Lens Version: v2023.5.310801-latest (5/31/2023)
Kubernetes Version: 1.24.13-gke.2500
Thanks you for your support here. Please let me know if there is any workaround here. Thank you!