Azure / Azure/AKS-Edge

[Question] Windows node networking

Open
#177 2 comments 0 reactions 1 assignee Claimed by @abhilashaagarwala View on GitHub
question
Dominant language
PowerShell
Stars
66
Forks
50
PR merge metrics
No merged PRs in 30d

Description

**Describe scenario**
I've set up a single machine k3s cluster with a linux and Windows worker node, and deployed the sample applications:
```
kubectl apply -f https://raw.githubusercontent.com/Azure/AKS-Edge/main/samples/others/linux-sample.yaml
kubectl apply -f https://raw.githubusercontent.com/Azure/AKS-Edge/main/samples/others/win-sample.yaml
```

**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 6379/TCP 18h app=azure-vote-back
azure-vote-front LoadBalancer 10.43.225.42 80:30010/TCP 18h app=azure-vote-front
kubernetes ClusterIP 10.43.0.1 443/TCP 18h
sample NodePort 10.43.124.239 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:
```
PS C:\inetpub\wwwroot> Invoke-WebRequest -Uri http://192.168.0.2:30010 -UseBasicParsing

StatusCode : 200
StatusDescription : OK
Content :



Azure Voting App

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.