Container Network Interface (CNI) is a standard interface for managing IP networks between containers across many nodes.
We chose to use CNI - weave as our networking option.
Deploy weave network. Run only once on the master-1
node. You will see a warning, but this is OK.
On master-1
kubectl apply -f "https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s-1.11.yaml"
Weave uses POD CIDR of 10.244.0.0/16
by default.
List the registered Kubernetes nodes from the master node:
kubectl get pods -n kube-system
output
NAME READY STATUS RESTARTS AGE
weave-net-58j2j 2/2 Running 0 89s
weave-net-rr5dk 2/2 Running 0 89s
Once the Weave pods are fully running which might take up to 60 seconds, the nodes should be ready
kubectl get nodes
Output
NAME STATUS ROLES AGE VERSION
worker-1 Ready <none> 4m11s v1.28.4
worker-2 Ready <none> 2m49s v1.28.4
Prev: Configuring Kubectl
Next: Kube API Server to Kubelet Connectivity