New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port-forwarding times out #19231
Comments
This sounds like #12179. I have a PR about ready to send out to fix it. |
The I'm not sure about the subsequent request problem. One way to find out would be to launch a GCE cluster and try your steps there. Kubernetes on GCE (as opposed to GKE) doesn't use SSH tunnels for proxying, so if it also fails on GCE, it wouldn't be a tunnel problem. |
I'm having the same issue here: http://pastebin.com/ENFtqL2G |
@samueltauil Yours is a slightly different, but related problem. Right now, we default to a 5 minute streaming-conneciton-idle-timeout in kubelet. I sent out #18552 to address that, but I'll probably just end up rolling it in with #19314. |
@cjcullen any changes that could be defined as a parameter ? |
Yeah. If you want to pass something higher than 5 minutes (or unlimited) into your kubelets, you can specify the |
Fixed by #19314 |
Question
What am I doing?
I have a pod running on GKE that i'd like to connect to 'privately' (ie without exposing it externally). To do this i'm using the port-forward command.
kubectl port-forward -p api-rc-eu9cs 8888:80 --v=10
What's the problem?
The initial request using the forwarded-port seems to be fast, subsequent ones hang and are unreliable. The log has occasional timeouts:
E0102 22:10:52.632087 57705 portforward.go:310] An error occurred forwarding 8888 -> 80: Timed out waiting for data stream
Extra details
I find that
kubectl exec
occasionally dies during a bash session on a pod, andlogs -f
too.Logs
I occasionally get multiple connection messages around the same time
Sometimes the port-forward script dies
Sometimes I get a broken pipe
But most of the time I get a timeout
The text was updated successfully, but these errors were encountered: