-
Notifications
You must be signed in to change notification settings - Fork 539
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
flannel doesn't work properly on windows node following readme #256
Comments
So I am having a similar problem/error. First, I don't have a subnet.env file on my Windows node - only on the Linux Master. Are you manually placing a file somewhere in the filesystem on that Windows node ? |
I find similar issue with windows server 1709, but then I start cluster from 0 again (by deleting etcd), then using windows server 1803 it works like charm, iis pod is succesfully deployed in windows worker, get ip address as specified using cni flannel, |
Probably comment int: pablodav/kubernetes-for-windows#13 (comment) could help. |
@alfianabdi did you enable MAC spoofing or promiscuity mode on your VM network adapter? @WenlongWang I have never hit this issue myself, but you are not the only person reporting it. Can you copy We are working on improving docs and I have a PR open. However the main time squeeze right now until 1.13 coding milestone is making sure the base network plugins are stable on WS2019 and conformance tests are passing so that we can graduate from beta. |
@daschott Copying /run/flannel/subnet.env to c:/run/flannel/subnet.env on a Windows Worker node (1803) actually helped in my case. I followed an official Microsoft guide https://onedrive.live.com/view.aspx?resid=E2B6765015E5FA01!339&ithint=file%2cdocx&app=Word&authkey=!AGvs_s_hWs7xHGs of how to add a windows worker and it wasn't mentioned there. Adding an env file and keeping track of flannel networks assigned to each windows node seems very confusing. In addition hostgw_windows.go correctly allocates /24 subnet from a flannel's range. |
sorry for the long delay here... We have made a number of improvements since last year such that Windows Servers are supported on Kubernetes v1.14 or above. Can you confirm you continue seeing this issue on cluster runnings K8s v1.14 or above? Otherwise, the first place I would check is that all the CIDRs are correct & in place, and that Flannel is configured correctly:
Please also make sure you are using Flannel v0.11 or above. Also, FYI NodePort access from the node itself fails on Windows: https://docs.microsoft.com/en-us/virtualization/windowscontainers/kubernetes/common-problems#my-windows-node-cannot-access-a-nodeport-service More information on how to troubleshoot Kubernetes networking can be found here: |
flanneld and flannel cni plugin uses a env file with args --subnet-file witch defaults to the location "/run/flannel/subnet.env",but this is not a windows-style path. Aparently, the guid here uses the default value, so after following this readme to build a kubernetes windows cluster and start a windows app, error like "createPodSandbox for pod xxx failed...... network: open /run/flannel/subnet.env: The system cannot find the path specified."
I have to edit "C:\k\cni\config\cni.conf" to add subnetFile location manually, this should be added to the start-kubelet.ps1 or at least a reminder should be in the readme.
The text was updated successfully, but these errors were encountered: