CKA (Certified Kubernetes Administrator)/Kode Kloud

07. Networking - CNI weave

seulseul 2022. 1. 27. 16:35
07. Networking

01. Explore Environment
02. CNI weave
03. Deploy Network Solution
04. Networking Weave
05. Service Networking
06. CoreDNS in Kubernetes
07. CKA – Ingress Networking – 1
08. CKA – Ingress Networking – 2
 

 

01. Inspect the kubelet service and identify the network plugin configured for Kubernetes.

 

ask : CNI

Run the command: ps -aux | grep kubelet 

and look at the configured --network-plugin flag

--network-plugin=cni

 

02. What is the path configured with all binaries of CNI supported plugins?

ask : /opt/cni/bin

 

03. Identify which of the below plugins is not available in the list of available CNI plugins on this host?

아래 플러그인 중 이 호스트에서 사용 가능한 CNI 플러그인 목록에서 사용할 수 없는 플러그인은 무엇입니까?

1) cisco

2) vlan

3) dhcp

4) bridge

root@controlplane:/opt/cni/bin# ls -la
total 70504
drwxrwxr-x 2 root root     4096 Jul 20  2021 .
drwxr-xr-x 3 root root     4096 Jul 20  2021 ..
-rwxr-xr-x 1 root root  4159518 May 13  2020 bandwidth
-rwxr-xr-x 1 root root  4671647 May 13  2020 bridge
-rwxr-xr-x 1 root root 12124326 May 13  2020 dhcp
-rwxr-xr-x 1 root root  5945760 May 13  2020 firewall
-rwxr-xr-x 1 root root  3069556 May 13  2020 flannel
-rwxr-xr-x 1 root root  4174394 May 13  2020 host-device
-rwxr-xr-x 1 root root  3614480 May 13  2020 host-local
-rwxr-xr-x 1 root root  4314598 May 13  2020 ipvlan
-rwxr-xr-x 1 root root  3209463 May 13  2020 loopback
-rwxr-xr-x 1 root root  4389622 May 13  2020 macvlan
-rwxr-xr-x 1 root root  3939867 May 13  2020 portmap
-rwxr-xr-x 1 root root  4590277 May 13  2020 ptp
-rwxr-xr-x 1 root root  3392826 May 13  2020 sbr
-rwxr-xr-x 1 root root  2885430 May 13  2020 static
-rwxr-xr-x 1 root root  3356587 May 13  2020 tuning
-rwxr-xr-x 1 root root  4314446 May 13  2020 vlan

 

04. What is the CNI plugin configured to be used on this kubernetes cluster?

 

 ask : flannel

 

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

컨테이너 및 관련 네임스페이스가 생성된 후 kubelet에 의해 실행되는 바이너리 실행 파일은 무엇입니까?

1) bridge

2) flannel

3) weave

4) weave-net

5) calico

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