- Take me to Practice Test
-
How many Nodes are part of this cluster?
kunbectl get nodes
2
-
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-system
2
-
On which nodes are the weave peers present?
kubectl get pods -n kube-system -o wide
One on every node
-
Identify the name of the bridge network/interface created by weave on each node.
At either host...
ip addr list
weave
In actual fact, the network interface is
weave
and the bridge is implemented byvethwe-datapath@vethwe-bridge
andvethwe-bridge@vethwe-datapath
-
What is the POD IP address range configured by weave?
Examine output of previous connad for
weave
interface. 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
ip
tool.Remember this container image. It is extremely useful for debugging cluster networking issues!
kubectl run testpod --image=wbitt/network-multitool
Wait for it to be running.
kubectl exec -it testpod -- ip route
Note the first line of the output. This is the answer.