WEBVTT

00:00.270 --> 00:04.760
In this lab,
we will explore how CNI is set up.

00:05.510 --> 00:09.050
We talked about the Weave plugin
in the previous video,

00:09.168 --> 00:10.610
but that's just one example.

00:11.530 --> 00:13.710
Let's see what is the CNI plugin

00:13.720 --> 00:16.390
that's configured
in this particular lab scenario?

00:18.920 --> 00:20.470
First, inspect the kubelet service

00:20.490 --> 00:23.600
and identify the network plugin configured
for Kubernetes.

00:24.740 --> 00:27.968
Let's explore the kubelet service.

00:28.020 --> 00:34.032
We're going to do ps aux,
and we'll grep for kubelet.

00:37.320 --> 00:39.420
For kubelet, it's a lot of information,

00:39.430 --> 00:43.840
let's also filter down
to network or network plugin.

00:44.690 --> 00:49.088
As you can see here,
we have the network plugin and it is CNI.

00:49.150 --> 00:51.250
CNI is a network plugin that's configured.

00:51.889 --> 00:53.060
Let's select CNI.

00:56.540 --> 00:58.100
Now, what is the path configured

00:58.110 --> 01:01.488
with all binaries
of CNI-supported plugins?

01:01.550 --> 01:12.016
We know that CNI stores its plugins
at OPT CNI bin, I think.

01:12.576 --> 01:13.780
This is where it stores

01:13.790 --> 01:16.912
all the executables
and binaries for the supported plugins.

01:17.210 --> 01:18.540
That's OPT, CNI bin.

01:20.910 --> 01:23.030
Now, identify which of the below plugins

01:23.136 --> 01:28.200
is not available in the list
of available CNI plugins on the host.

01:30.270 --> 01:39.940
If you look at this, we have Bridge,
we have DHCP, we have Cisco--

01:39.950 --> 01:41.650
We don't have Cisco, we have VLAN.

01:42.440 --> 01:44.640
What we don't have here is Cisco.

01:44.650 --> 01:45.650
That's

01:49.680 --> 01:50.190
the one.

01:50.200 --> 01:54.720
Now, what is the CNI plugin configured
to be used on this Kubernetes cluster?

01:56.280 --> 02:00.800
Let's look
into the etc configured directory of CNI.

02:00.810 --> 02:03.936
ETC is cni/net.t.

02:04.272 --> 02:11.240
Here we see that the configured plugin
is flannel so select flannel.

02:14.590 --> 02:16.490
Now, what binary executable file will be

02:16.500 --> 02:20.500
run by kubelet after a container
and its associated namespace are created?

02:21.050 --> 02:25.630
If you look into this file,
has additional information.

02:27.300 --> 02:29.610
If you look at the plugins
that are configured here,

02:29.690 --> 02:30.944
the first one is flannel.

02:31.152 --> 02:35.910
That's, the binary
that's going to be executed.

02:36.940 --> 02:38.304
It said, "Multiple plugins configured."

02:38.352 --> 02:41.610
The first one is flannel
and then it runs the port map.

02:41.776 --> 02:44.580
The answer to this question is flannel.

02:45.210 --> 02:46.330
That's a quick introduction

02:46.410 --> 02:50.880
on how and where you should look for
information regarding the CNI plugin.

