Practice Test Networking Weave
- Take me to Practice Test
Solution
-
How many Nodes are part of this cluster?
kunbectl get nodes2
-
What is the Networking Solution used by this cluster?
Two ways to do this:
-
kubectl get pods -n kube-system -
ls -l /opt/cni/bin
In both you see evidence of
weave
-
-
How many weave agents/peers are deployed in this cluster?
kubectl get pods -n kube-system2
-
On which nodes are the weave peers present?
kubectl get pods -n kube-system -o wideOne on every node
-
Identify the name of the bridge network/interface created by weave on each node.
At either host…
ip addr listweave
In actual fact, the network interface is
weaveand the bridge is implemented byvethwe-datapath@vethwe-bridgeandvethwe-bridge@vethwe-datapath -
What is the POD IP address range configured by weave?
Examine output of previous connad for
weaveinterface. Note its IP begins with10., so…10.X.X.X
-
What is the default gateway configured on the PODs scheduled on node01?
Now we can deduce this from the naswer to the previous question. Since we know weave’s IP range, its gateway must be on the same network. However we can verify that by starting a pod which is known to contain the
iptool.Remember this container image. It is extremely useful for debugging cluster networking issues!
kubectl run testpod --image=wbitt/network-multitoolWait for it to be running.
kubectl exec -it testpod -- ip routeNote the first line of the output. This is the answer.