-
Notifications
You must be signed in to change notification settings - Fork 852
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
The LoadBalancer type service in Kubernetes on WSL2 should be accessible from both Windows and WSL2. #12473
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here Once completed please upload the output files to this Github issue. Click here for more info on logging |
/question |
Diagnostic information
|
thanks for reporting the issue to better understand the scenario - is the external IP an IP assigned to a Linux interface (is this is an IP that shows up in the output of "ip addr show"?) or is it some sort of virtual IP that only Kubernetes knows about? |
I did some research and found that the external IP is not assigned to a Linux interface but rather to the IP of a container in Docker. Whenever a LoadBalancer-type service is created, the cloud-provider-kind creates a corresponding container. In fact, the external IP is the IP of that container. Just like the node containers in the k8s cluster, they are all in the same Docker network called |
thanks for the additional context. can you please collect networking logs using the instructions at https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues? the script will generate a zip with "WslNetworkingLogs*" please also share the external IP you are connecting to, so that we can use it to narrow down the logs |
I encountered an issue in wsl2 ubuntu22.04 while using Kind and its corresponding loadbalancer -- cloud-provider-kind.
I am using Docker Desktop shared between WSL2 and Windows, and I’ve tried both NAT and mirrored WSL2 network configurations.
Notably:
Both of these configurations can assign an external IP to a LoadBalancer service. However, is there a way to make the LoadBalancer service accessible directly through the external IP on both WSL2 and Windows, like it is on macOS?
ref:
https://github.com/kubernetes-sigs/cloud-provider-kind
kubernetes-sigs/cloud-provider-kind#189
The text was updated successfully, but these errors were encountered: