-
Notifications
You must be signed in to change notification settings - Fork 40.6k
Dockershim streaming server conflicts with NodePort #85418
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
Comments
/sig node |
Fixed be setting sysctl Maybe this should be documented somewhere? |
I wonder why you could use 32935 or 37751 as nodePort. |
You can set a custom node-port-range in api-server which we did: |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@wktmeow: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
For anyone else stumbling upon this issue with the error |
Had the same problem. In the cluster of someone cloud vendor, which set apiserver with option --service-node-port-range=30000-50000, the streaming server startup with port 32859, it conflicted with nodeport of one service. AFAIK, the 'redirect-container-streaming' options will disable streaming server, but it had been removed from v1.20. If i read it right,issue #100643 is disccussing it. |
/reopen |
@JasonRD: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@amine250: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
dockershim has been deprecated so this issue is not likely to be reopen, if you have another issue then please open a new issue with all the details |
What happened:
kubectl exec
fails or times out:Connection refused:
Timout:
What you expected to happen:
kubectl exec
works...How to reproduce it (as minimally and precisely as possible):
kubectl exec
with a pod on that node (kubedev-worker-8b005e396435).error: unable to upgrade connection: error dialing backend: dial tcp 127.0.0.1:32935: connect: connection refused
Anything else we need to know?:
I'm not sure how to reproduce the
kubectl exec
connection timed out problem but I observed that the kubelet streaming server was using a existing NodePort in this case as well. Maybe this happens after a reboot when the kubelet starts before the kube-proxy and the kubelet uses a NodePort that is already used...Seems to me that the streaming server uses a random port that doesn't take into account the NodePort Range:
kubernetes/pkg/kubelet/kubelet.go
Line 2294 in 4c50ee9
Maybe an option to specify the streaming server port would fix it?
Environment:
kubectl version
): v1.15.5 kubelet and api-servercat /etc/os-release
): Ubuntu 18.04.3 LTSuname -a
): 5.0.0-31-genericThe text was updated successfully, but these errors were encountered: