-
Notifications
You must be signed in to change notification settings - Fork 19
Flannel unable to find interface #11
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
Comments
@benmoss , yes it looks like the issue with the highlighted part of code. The exact change is here (by me): ptylenda/flannel@5237d22#diff-8326fda6ab4295b649c013b52359913c but it was a temporary workaround for problems with resolving the interface address when using kube-proxy in userspace. My original pull request is here: rakelkar/flannel#8 - treat it more like a "indication" of a problem, not a resolution of the bug. And now it looks that something has changed in the way how netsh enumerates the interfaces, and there is a chance, that the original flannel code works properly. I would suggest trying the code from rakelkar: flannel-io/flannel#921, bear in mind you have it to compile manually, package it into tar.gz and then provide it over here: https://github.com/ptylenda/kubernetes-for-windows/blob/master/ansible/roles/windows/flannel/defaults/main.yml#L2 I know it is a long way to achieve the result, but unfortunately there has been very little offical commits around flannel in terms of Windows support over last 6 months :( There is also another option, you may try getting rid of flannel totally and replacing it with wincni (similar to mentioned here in official docs: https://kubernetes.io/docs/getting-started-guides/windows/ - look for wincni.exe). I remember MS was recently open sourcing this CNI plugin and put it over here https://github.com/Microsoft/SDN/tree/master/Kubernetes/wincni |
@ptylenda switching back to rakelkar/flannel#8 did indeed get Flannel to start successfully, but now requests to my NodePort service aren't responding. I can still reach the pods from on the Windows machine. So complicated 😿 |
Here's my Flannel output:
and my
netsh
output:It seems all fine to me, or at least as far as I understand it, but from looking at the code it looks like https://github.com/ptylenda/flannel/blob/5237d22358e8bb89cfb3bd7716567aa798c25dee/vendor/github.com/rakelkar/gonetsh/netsh/netsh.go#L155 is going to make it only ever find the first IP for the interface.
The text was updated successfully, but these errors were encountered: