1

Under this official doc, calico and flannel are not yet fully supported by windows. I plan to use ToR (top of rack) static routing.

How do I install the default CNI? (just do nothing?)

E.g. using flannel I will need to run - kubectl apply -f kube-flannel.yml

So what do I need to install for default CNI for ToR static routing?

Also a quick note, I'm using Kubeadm to set this up on-prem so any insight would be appreciated.

Dan Kohn
  • 33,811
  • 9
  • 84
  • 100
JuniorPenguin
  • 163
  • 10

1 Answers1

0

Actually, there's a default CNI config here. It also shows you steps to set it up on a Windows hosts. And this script would setup up the PodCidr that you'd need to run your kubelet.

You still need as you mentioned, setup your own ToR static routes.

Hope it helps!

Update from @JuniorPenguin:

I would just add enable NIC promiscuous mode if you are using VMware

Rico
  • 58,485
  • 12
  • 111
  • 141
  • Your first link includes another link to setup the masters for installing CNI. But I am wondering if kubeadm/kubeadm config file would install the default CNI plugin. – JuniorPenguin Sep 24 '18 at 22:24
  • Haven't tried kubeadm on Windows but essentially on Linux it install the more popular CNI plugins, but not the configs. The configs are generated when you install the overlay. In any case, you will have to configure networking on Windows. – Rico Sep 24 '18 at 22:28
  • It says in the official docs that kubeadm does not support kubenet -- does that mean it won't support the default CNI when working with kubeadm? Thanks! – JuniorPenguin Sep 24 '18 at 23:40
  • That's my bet. kubenet has also been deprecated on the later Kubernetes version in favor of the overlays. – Rico Sep 24 '18 at 23:46
  • I found how to do kubeadm with kubenet -- its not under official docs but a work around -- [link](https://github.com/kubernetes/kubernetes/issues/34949) – JuniorPenguin Sep 25 '18 at 16:21
  • 1
    For anyone reading this, I would just add enable NIC promiscuous mode if you are using VMware. Thanks! – JuniorPenguin Feb 11 '19 at 20:27