Skip to content

Latest commit

 

History

History
103 lines (65 loc) · 2.34 KB

16-Practice-Test-Networking-weave.md

File metadata and controls

103 lines (65 loc) · 2.34 KB

Practice Test Networking Weave

Solution

  1. How many Nodes are part of this cluster?
    kunbectl get nodes

    2

  2. What is the Networking Solution used by this cluster?

    Two ways to do this:

    1. kubectl get pods -n kube-system
    2. ls -l /opt/cni/bin

    In both you see evidence of

    weave

  3. How many weave agents/peers are deployed in this cluster?
    kubectl get pods -n kube-system

    2

  4. On which nodes are the weave peers present?
    kubectl get pods -n kube-system -o wide

    One on every node

  5. 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 by vethwe-datapath@vethwe-bridge and vethwe-bridge@vethwe-datapath

  6. What is the POD IP address range configured by weave?

    Examine output of previous connad for weave interface. Note its IP begins with 10., so...

    10.X.X.X

  7. 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.