-
Notifications
You must be signed in to change notification settings - Fork 277
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
NodePort services are not accessible from host using localhost #2489
Comments
I experience the same on Windows 10.0.19044.
|
The issue turns out to be an upstream change in Kubernetes itself. You can get the list of versions that don't forward the port properly anymore from #2593 (comment). So #2593 is actually a duplicate of this one, but we'll keep both open for now because the other issue has more details about the problem already. |
Kubernetes version 1.19.x and 1.20.x seem to work fine but I couldn't get it working for 1.21.x |
Same here, doesn’t work for 1.21.x on my Mac M1 chip |
Same here. So upvoting. |
Please report the exact configuration you are testing and not make some generalization like "Doesn't work on 1.21.x" if you only tested a specific version, and not all of them. I assume you only tested 1.21.12, as 1.21.11 and 1.21.10 worked in my testing. I'm going to close this as a duplicate of #2593. Feel free to re-open if it fails for you for any version not yet listed in #2593 (comment) (I just updated it to include 1.21.12) and please specify the exact configuration that you are running. |
Apologies to @Noksa as this is actually the first bug report about this issue, but we didn't realize until recently that #2593 is the same thing. Normally I would close the later issue as a duplicate of the earlier one, but in this case the information about the root cause is already included in the other issue, so we need to keep that one open for the developer who is going to fix it.. We will make a 1.5.1 release next month that will add support for automatic port forwarding with the newer Kubernetes releases; it has not yet been addressed in the 1.5.0 release from earlier today. |
Yes I only tried 1.21.12 as that was the EKS version we were using. When node port did not work I switched to 1.20.15 as that was in recommend list. I can confirm that 1.21.11 is working on M1 and I have switched to this version |
@itsnagaraj Thank you for confirming! And sorry I was a bit grumpy last night about the |
Is it suposed to work on kubernetes v1.27.2? I am still having problems with port-forward to kube-dns |
Actual Behavior
Trying to hit a nodeport service from the host using localhost:NODEPORT_SEVICE_PORT
Result:
Steps to Reproduce
Result
Expected Behavior
It should be accessible from the host using localhost as it works in DD for example.
Additional Information
No response
Rancher Desktop Version
1.4.1
Rancher Desktop K8s Version
1.22.11
Which container runtime are you using?
moby (docker cli)
What operating system are you using?
macOS
Operating System / Build Version
MacOS Monterey 12.4
What CPU architecture are you using?
arm64 (Apple Silicon)
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
No response
The text was updated successfully, but these errors were encountered: