Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Section 9: Networking (14-20)

Total questions: 32

Worksheet time: 24mins

Name
Class
Date
1.

What are three requirements for Pod networking?

a)

Every Pod should have a routing table

b)

Every POD should have an IP Address.

c)

Every POD should be able to communicate with every other POD on other nodes without NAT.

d)

Every Pod should have a MAC address

e)

Every POD should be able to communicate with every other POD in the same node.

2.

What are three Pod networking solutions for Kubernetes?

a)

OpenVNet

b)

Flannel

c)

Cilium

d)

CoreDNS

e)

VMware NSX

3.

When containers are created, Kubernetes doesn't create network namespaces for them.

a)

True

b)

False

4.

Imagine we have the topology of the attached picture.

In order to enable Pod networking, what components should be configured?

a)

Create a veth for the network namespace and the bridge port

b)

Create a routing table for each node

c)

Create a bridge network on each node

d)

Assign IPs to bridge networks

5.

The attached image refers to:

a)

Script to configure Pod networking

b)

Script to configure host networking

c)

Script to configure routing tables on each network namespace

d)

Script to configure routing tables on each node

6.

According to the attached image.

Add a route on the NODE1 in order to any Pod in any network namespace within it can reach the Purple Pod (10.244.2.2) on NODE2.

(a)  

7.

In the attached image is seen how routes are configured on each node to reach other node's Pods.

What's a better solution for route?

a)

Configure a switch on the network

b)

Use a network router

c)

Use VMware NSX

d)

Use any Pod networking solution

8.

The script of the attached image configures each container in order to allow Pod networking configuration.

What parameters should be added to the script to meet the CNI standards to execute automatically the script every time new containers are created?

a)

CNI)

b)

ADD)

c)

AUTO)

d)

DEL)

e)

DELETE)

9.

The (a)   on each node is responsible to create containers.

10.

When a container is created, the container runtime looks at the CNI configuration passed to directory path (a)   and identifies our script's name used to automatically configure Pod networking on our containers

11.

The container runtime looks in the CNI bin directory (a)    to find our script used to automatically configure Pod networking on our containers.

12.

_____________ defines the responsabilities of container runtime.

a)

Docker

b)

CNI

c)

Kubernetes

d)

API Server

e)

CRI

13.

______________ is responsible for creating containers, network namespaces, identifying and attaching those namespaces to the right network by calling the right network plugin.

a)

Docker

b)

CNI

c)

Kubernetes

d)

API Server

e)

Container Runtime

14.

The CNI plugin is configured in the _______________

a)

etcd server

b)

Kube API Server

c)

Kubelet service

d)

controller-manager

15.

What three options are set in the kubelet service to configure the CNI as the network plugin?

a)

--cni-dir

b)

--network-plugin

c)

--cni-conf-path

d)

--cni-bin-dir

e)

--cni-conf-dir

16.

Type the full command to see the current network plugin configuration in the current running processes:

(a)  

17.

What's the full path of the directory containing a file where we can see what's the current CNI plugin configured in the cluster?

Type the absolute path.

(a)  

18.

What's the CNI config directory.

Type the absolute path.

(a)  

19.

What's the full path where there is a file containing the list of all the supported CNI plugins?

Type the absolute path.

(a)  

20.

What is the CNI bin directory?

Type the absolute path.

(a)  

21.

What's the absolute path where there's a file that Kubelet looks to find out which plugin needs to be used?

Type the absolute path of the directory where's contained:

(a)  

22.

What does the content of the image refer to?

a)

virtual network configuration

b)

CNI main config

c)

CNI plugin configuration

d)

Bridge interface configuration

23.

It's a software-defined networking (SDN) solution for containers that creates a virtual network that connects containers across multiple hosts

a)

CoreDNS

b)

CNI

c)

Weaveworks

d)

VMware NSX

24.

How does Weaveworks do as network solution in order to each node to know about the other nodes, the other Pods in the other nodes, the other namespaces in the other nodes, etc?

a)

It maps the cluster network with its own discovery protocol

b)

It fetches data via SNMP

c)

It deploys agents on each node

d)

It received the information via IMAP

25.

How does the Weaveworks agents do to know the Pods and the IPs on the other nodes?

a)

It maps the cluster network with its own discovery protocol

b)

It fetches data via SNMP

c)

It deploys agents on each node

d)

It received the information via IMAP

e)

It stores a topology of the entire setup

26.

Weave creates its own bridge on the nodes and assign the IP address to each network.

a)

True

b)

False

27.

You cannot have a container attached to the Weave bridge as well as the Docker Bridge created by Docker.

a)

True

b)

False

28.

Without Kubernetes to be configured, Weave and Weave Peers (agents) can be deployed as:

a)

Daemon Sets

b)

Pods

c)

Containers

d)

Services

29.

If Kubernetes is setup already, Weave and Weave Peers (agents) can be deployed as:

a)

Daemons

b)

Pods

c)

Containers

d)

Services

30.

Type the full command to deploy Weave in the cluster.

The source is: https://cloud.weave.works/k8s/net?k8s-version

(a)  

31.

Imagine we deployed our cluster with Kubeadm tool and Weave plugin.

Type the full command to list/see the Weave Peers.

(a)  

32.

You have the following information to check the logs for weave:

-Pod name: weave-net-5gcmb

-Container name: weave

(a)