kubelet-service.ps1
fails to discover the network interface
#5231
Labels
kubelet-service.ps1
fails to discover the network interface
#5231
Expected Behavior
The script should discover the
NodeIp
when a matching network adapter is found.Current Behavior
Rather than finding the NodeIp it loops forever.
The network is configured as:
Possible Solution
The
NodeIp
parameter is defined (see https://github.com/projectcalico/node/blob/b210fcb832a0b6931e73fc6f88dc9ee9272cead4/windows-packaging/CalicoWindows/kubernetes/kubelet-service.ps1#L16) but isn't used in the script apart from initialization at https://github.com/projectcalico/node/blob/b210fcb832a0b6931e73fc6f88dc9ee9272cead4/windows-packaging/CalicoWindows/kubernetes/kubelet-service.ps1#L34 which doesn't look like the original intent.When the parameter is provided the discovery logic should be skipped (i.e.
.\kubelet-service.ps1 -NodeIp 172.31.0.19
). This should preserve existing behaviour and allow me to complete the Calico install. I can test and PR if that is useful.Steps to Reproduce (for bugs)
See above.
Context
I'm running Windows 10 with Hyper-V and a custom Hyper-V switch (shows as hvk8s.local). The Linux control plane and node are functional at 172.31.0.10 and 172.31.0.11, see:
The un-joined Windows Server Core 20H2 node is on the Hyper-V virtual network at 172.31.0.19.
Your Environment
The text was updated successfully, but these errors were encountered: