-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
Network requests fails in Windows with default k3d #518
Comments
I would love to contribute. If you can give some tips on where to start I can try to look into this |
I think starting point is to create a simple request (such as a) Based on results you should be able to tell who is at fault: |
So I just tried with a GKE cluster and it works so the issue is definitely related to local Kubernetes clusters via docker. And since Docker doesn't expose localhost in Windows like in Unix it could be the issue. I'll look at the Go client on what it does. @MikailBag thanks, i'll try that |
Ok seems like this is the issue. For the k3d cluster created the server URL is |
Hm, this might be a case where we tell people to use From docs on k3d cluster create:
setting Strange that |
Ya but the problem is k3d's quick start doesnt mention needing to use this so people, like me, will end up just running |
Yeah, that's true. Maybe if you can find what client-go is doing here, we can potentially duplicate it? |
I'll try to look into it. But I have never looked at the go client before so gonna take some time |
From my initial look around it doesnt seem like Go client does anything special for this. I might have missed something. Could this be a Hyper issue? |
I had a couple of searches through hyper and only couple of things I can think of are things in the connector. Maybe This might be easier to pinpoint now that we can create custom clients, perhaps it would be helpful experimenting a bit with how various hyper options interact on windows. We can customise the |
In windows the library fails with
'HyperError: error trying to connect: TCP connect error: The requested address is not valid in its context. (os error 10049)'
Here is a reproducible code. I tried with both Docker-Desktop Kubernetes and K3D and both fails. I'll test with a cloud-based cluster to see if that works
maybe this could be due to how docker works in Windows and maybe we can do what the go lib does on that situation
The text was updated successfully, but these errors were encountered: