You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question
I can't seem to access the Windows sample container service, either from the host machine, or from the linux pods. Is any further setup required to get the Windows worker node networking setup correctly?
PS C:\Users\luke> kubectl.exe get services -o wide
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
azure-vote-back ClusterIP 10.43.43.226 <none> 6379/TCP 18h app=azure-vote-back
azure-vote-front LoadBalancer 10.43.225.42 <pending> 80:30010/TCP 18h app=azure-vote-front
kubernetes ClusterIP 10.43.0.1 <none> 443/TCP 18h <none>
sample NodePort 10.43.124.239 <none> 80:31230/TCP 3s app=sample
PS C:\Users\luke> curl -UseBasicParsing -Uri http://192.168.0.3:31230
curl : Unable to connect to the remote server
At line:1 char:1
+ curl -UseBasicParsing -Uri http://192.168.0.3:31230
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
PS C:\Users\luke> Get-AksEdgeNodeAddr -NodeType Windows
[04/09/2024 00:04:31] Querying IP and MAC addresses from virtual machine (luke-testing-wedge)
- Virtual machine MAC: 00:15:5d:00:05:0b
- Virtual machine IP : 192.168.0.3 retrieved directly from virtual machine
Name Value
---- -----
IpAddress 192.168.0.3
MacAddress 00:15:5d:00:05:0b
FWIW, running a web request from the Windows node to the linux node is working without any issues:
I am encountering the same issue if I restart the Windows node.
I am not able to connect on the Windows nodeport but the nodeport on Linux works. Looking into it further there appears to be missing HNS Endpoints after the node is restarted. Only the Outbound NAT endpoint for routing to the Linux node pod network appears which explains how it's able to connect on the Linux nodeport.
Then tested restarting the windows node. HNS Endpoints missing. Found projectcalico/calico#5164. Deleted the service and deployment, reapplied the manifest and endpoints came back.
Retested k3s+flannel with the registry fix. Networking still broken after node restart. Doesn't matter if resources are deleted and reapplied.
Describe scenario
I've set up a single machine k3s cluster with a linux and Windows worker node, and deployed the sample applications:
Question
I can't seem to access the Windows sample container service, either from the host machine, or from the linux pods. Is any further setup required to get the Windows worker node networking setup correctly?
FWIW, running a web request from the Windows node to the linux node is working without any issues:
The text was updated successfully, but these errors were encountered: