-
Notifications
You must be signed in to change notification settings - Fork 541
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
Kubernetes windows node not creating network #170
Comments
I am having this issue as well. |
Have you do manual installation of kubernetes like instructions in the URL above ? Mine having works perfectly after execute startKubulet.ps1, startKuberproxy and script to network (network section). |
Line in the AddRoutes.ps1 script such as $na = Get-NetAdapter | ? Name -Like "vEthernet (Ethernet*" just do not work since there is no such network adapter in a fresh installation of Windows Server 2016. How did you get it to work? |
Have you tried in Powershell? |
yes i have tried running in powershell. it didnt work because of the reason i mentioned above |
Hi @JMesser81 , i've tried your latest script from Linux and windows nodes. Somehow it didn't worked. I tried to ping to outside cluster from win-webserver (example) pod. My masterIP (192.168.34.0/24) is outside my worker node IP (192.168.91.0/24). Pod CIDR is 10.168.0.0/16. Another info, I'm using Centos 7.4 with firewalld, SElinux disable also with Swapoff. Right now I try to make node (windows) and management node (Centos) as in one network. Also tried to replace firewalld with iptables since generate-routes.sh involve iptables instead of firewalld. Any solutions for this? I tried hard to make things work but it still doesn't worked. |
@JMesser81 $kubectl get pods --all-namespaces In the script its trying to use network plugin as "kubenet" i am not sure how kubernetes will come to know about the network plugins, are they specified in the "container image" $ps aux |
@JMesser81 kubenet Kubenet creates a Linux bridge named cbr0 and creates a veth pair for each pod with the host end of each pair connected to cbr0. The pod end of the pair is assigned an IP address allocated from a range assigned to the node either through configuration or by the controller-manager. cbr0 is assigned an MTU matching the smallest MTU of an enabled normal interface on the host. The plugin requires a few things: The standard CNI bridge, lo and host-local plugins are required, at minimum version 0.2.0. Kubenet will first search for them in /opt/cni/bin. Specify cni-bin-dir to supply additional search path. The first found match will take effect. The node must be assigned an IP subnet through either the --pod-cidr kubelet command-line option or the --allocate-node-cidrs=true --cluster-cidr= controller-manager command-line options. |
I'm in the same boat. I can't add the windows routes because there is no vEthernet (cbr0). |
@daschott - can you take a look at this? We recently updated our HOW TO guide and David can provide an update (or even better, post on our repo) :-) |
Here is the most recent How-to guide for deploying a mixed-OS Kubernetes cluster using Flannel. These instructions will work on either Windows Server, version 1803 or Windows Server 2019. These are also compliant with the way a Linux master is initialized using kubeadm, making deployment of not just Windows, but also Linux easier than before. The benefit of using Flannel as a network management solution is simpler configuration and scalability, as it programs routes automatically for you. This is in contrast to our (current) public documentation that is trickier to deploy, but offers more control due to manual route management. |
I followed the instructions again. Thank you very much for updating them. I'm running into this issue running start.ps1 to join the windows node. It just keeps spinning with this error: "E0618 09:52:23.273306 1188 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: Get https://10.26.64.195:6443/api/v1/pods?fieldSelector=spec.nodeName%3Dfrd-vtapp-kub03&limit=500&resourceVersion=0: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")" A couple of differences to note:
|
Please ignore my last comment. I accidentally copied the wrong config file. The windows node was joined! Thanks! |
Could you ping to external cluster from inside of pod? I'm having trouble
to this therefore my pod can't communicate to external resource. Works fine
communicate to other pod instead cluster.
…On Mon, Jun 18, 2018, 8:03 PM Caleb Palmer ***@***.***> wrote:
Please ignore my last comment. I accidentally copied the wrong config
file. The windows node was joined! Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#170 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAGk7KoGiI8d-0vkL2D-OhFdZySFZ3UJks5t96UKgaJpZM4RsPVU>
.
|
@funky81 For outbound connectivity, ICMP traffic may not work, as this is a limitation today! Can you try TCP or UDP to double-check pods have outbound connectivity? For example, |
Nope, it still doesn't work. Sol
…On Mon, Jun 18, 2018, 11:48 PM David Schott ***@***.***> wrote:
@funky81 <https://github.com/funky81> For outbound connectivity, ICMP
traffic may not work, as this is a limitation today!
Can you try TCP or UDP to double-check pods have outbound connectivity?
For example, curl -useb http://bing.com?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#170 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAGk7DA2BrJKVteW2qcm1-h1jIevBECpks5t99npgaJpZM4RsPVU>
.
|
Any updates on this issue? We are facing the same, pods do not have outbound connectivity running on a windows worker |
This definitely works today. @Moofasax do you have Mac Spoofing enabled if you're using VMs? |
The other thing to check is the FAQ on outbound NAT: “My Windows pods cannot ping external websites” |
Sorry i dont think i fully understand yet, does that mean the exception list would be 0.0.0.0/0 if i wanted my pods to reach out to any website?
thanks! I can post on stackoverflow if that is a more applicable place for me to ask questions, thanks! |
@Moofasax @funky81 Does the following help? Can you please share CollectLogs.ps1 + IP of the impacted pod so we can see what went wrong? |
I am running into the same issue where the windows node is not able to create a route. I had to update the Note that I am trying this on AWS (KVM based), I have not been able to run Set-VMProcessor (Hyper-v based)
Major Minor Build Revision
----- ----- ----- --------
10 0 17763 0
PS C:\k\temp\SDN\Kubernetes\windows> systeminfo | findstr OS
OS Name: Microsoft Windows Server Datacenter
OS Version: 10.0.17763 N/A Build 17763
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Server
OS Build Type: Multiprocessor Free
BIOS Version: Xen 4.2.amazon, 8/24/2006
PS C:\k\temp\SDN\Kubernetes\windows> ========================================================== Update ... I was able to get passed this issue. I ended up upgrading to kub 1.10.11. Thanks |
sorry for the long delay here... The new overlay instructions are out now. We have made a number of improvements since last year such that Windows Server version 1809 or above are supported on Kubernetes v1.14 or above. More information on how to troubleshoot Kubernetes networking can be found here: Here is the K8s docs: https://kubernetes.io/docs/setup/production-environment/windows/user-guide-windows-nodes/ Please submit new issue and cc me if you continue seeing problems on latest supported versions, thank you! |
I followed the scripts provided by msdn and was unable to create a cbr0 network interface required to install a Windows node.
Looking at the start-kubelet.ps1 script I assume that the script should create the cbr0, but it seems to not work correctly and therefore you cannot follow the AddRoutes commands to the windows nodes.
Are there any known issues or manual instructions on how to add this interface?
Getting Started:
https://docs.microsoft.com/en-us/virtualization/windowscontainers/kubernetes/getting-started-kubernetes-windows
Network Topology:
https://docs.microsoft.com/en-us/virtualization/windowscontainers/kubernetes/configuring-host-gateway-mode
Kubernetes:
Kubernetes 1.9.2
System details are below:
The text was updated successfully, but these errors were encountered: