April 2018
Intermediate to advanced
468 pages
14h 34m
English
The networking of the cluster is the big-ticket item. The pods need to be able to talk to each other. That requires a pod network add-on. There are several options for this. Clusters generated by kubeadm, require a CNI-based add-on. I chose to use the Weave Net add-on, which supports the Network Policy resource. Your can choose whatever you like.
Run the following commands on the master VM:
vagrant@n1:~$ sudo sysctl net.bridge.bridge-nf-call-iptables=1 net.bridge.bridge-nf-call-iptables = 1vagrant@n1:~$ kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
You should see the following:
serviceaccount "weave-net" createdclusterrole.rbac.authorization.k8s.io "weave-net" ...
Read now
Unlock full access