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://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
Weave uses POD CIDR of 10.32.0.0/12
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.24.3
worker-2 Ready <none> 2m49s v1.24.3
Prev: Configuring Kubectl
Next: Kube API Server to Kubelet Connectivity