-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Dask can not connect to scheduler using NodePort when node has multiple addresses #806
Comments
I expect the bug is on this line. If your node has two addresses only the first is returned. We will need some way to figure out which is public and which is private.
|
@jacobtomlinson , in my case, the IP is correct. Using the We have only one IP address per node. It's not a problem. Here is an example of the API output:
However, I agree that filtering these addresses by |
@jacobtomlinson, Just to clarify, we do have access to internal IP addresses. Therefore, if you plan on filtering IP addresses by type, please allow for the option to choose internal IP addresses as well. |
@jacobtomlinson I've prepared a PR, that shows how I think it should be fixed #808 |
Closed by #808 |
Describe the issue:
If we try to create a scheduler with service type
NodePort
, dask will try to connecting to scheduler forever:It seems that
get_external_address_for_scheduler_service
returns internal porttcp://172.16.18.191:8786
, instead of which is being mapped in services:dask-kubernetes/dask_kubernetes/common/networking.py
Line 86 in 7c09b57
As a solution, we have to use
node_port
instead ofport
in case of usingNodePort
service:dask-kubernetes/dask_kubernetes/common/networking.py
Line 60 in 7c09b57
So, the correct connection URI should be:
tcp://172.16.18.191:32167
Minimal Complete Verifiable Example:
Environment:
The text was updated successfully, but these errors were encountered: