0

Question

Does kubeadm join on the worker nodes configure Pod network, or need to run (3/4) Installing a pod network step on every node?

Background

Reading Using kubeadm to Create a Cluster but not clear what are the worker node specific tasks.

mon
  • 18,789
  • 22
  • 112
  • 205

1 Answers1

1

kubeadm join will not configure the pod network. The installing a pod network section that you mention references network middleware that uses Container Networking Interface (CNI). The advantage is that you can deploy special pods that will configure the network in the cluster without having to log in to every node and configure the networking.

For example, this command will deploy pods that will configure the pod networking using Weave Net

kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
Javier Salmeron
  • 8,365
  • 2
  • 28
  • 23
  • Thanks for the answer, however apparently kubeadm join does the configuration as I did not run CNI configuraiton (Flannel) on worker nodes but on master only. However not sure how it is done. The CIDR allocated to the flannel configured at master automatically reflected at worker nodes. – mon Dec 13 '17 at 17:07
  • You only need to execute the above command once. As it is using pods, it will automatically configure the worker nodes as well. – Javier Salmeron Dec 14 '17 at 09:16