CNI (Container Network Interface)

  • Container Runtime must create network namespace.
  • Identify network the container must attach to.
  • Container Runtime to invoke Network plugin(bridge) when container is Added.
  • Container Runtime to invoke Network plugin(bridge) when container is Deleted.
  • JSON format of the Network Configuration.
  • Command line arguments- ADD/DEL/CHECK.
  • Parameters — container ids, network namespace etc..
  • Must manage IP address assignment to PODs.
  • Must return result in specific format.

- Check which CNI plugin it’s using:

CNI Plugin.

- Check all the plugin binaries supported:

- CNI plugin configured to be used on this kubernetes cluster?

- What binary executable file will be run by kubelet after a container and its associated namespace are created.

Look at the type field in file /etc/cni/net.d/10-flannel.conflist

- Deploy weave-net networking solution to the cluster:

Reference: — https://www.weave.works/docs/net/latest/kubernetes/kube-addon/

## Weave Net can be installed onto your CNI-enabled Kubernetes cluster with a single command. Use the below commandkubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"

- Identify the name of the bridge network/interface created by weave on each node.

bridge Interface.

- What is the POD IP address range configured by weave?

IP Address Range.

- What is the default Gateway configured on the PODs scheduled on node03

get into the Image hosted on Node03
Get Pod route

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store