본문 바로가기
cloud/k8s(문제풀이)

[k8s]Networking-Explore Environment

by mozi2 2022. 8. 1.
반응형

1.How many nodes are part of this cluster?

Including the controlplane and worker nodes.

k get nodes

2. What is the Internal IP address of the controlplane node in this cluster?

k get nodes -o wide

A) 10.0.243.9

 

3.What is the network interface configured for cluster connectivity on the controlplane node?

node-to-node communication

k get nodes -o wide
ip a | grep 10.0.243.9

A) eth0

 

4. What is the MAC address of the interface on the controlplane node?

ip a | grep eth0
ip link show eht0

A) 02:42:0a:00:f3:09

 

5. What is the IP address assigned to node01?

k get nodes -o wide

A) 10.0.243.12

 

6. What is the MAC address assigned to node01?

arp node01

A) 02:42:0a:00:f3:0a

 

7. We use Docker as our container runtime. What is the interface/bridge created by Docker on this host?

ip link | grep docker

A) docker0

 

8. What is the state of the interface docker0?

A) Down

 

9.If you were to ping google from the controlplane node, which route does it take?

What is the IP address of the Default Gateway?

k get nodes -o wide
ip route show default

 A)172.25.0.1

 

10. What is the port the kube-scheduler is listening on in the controlplane node?

 netstat -nlpt
netstat -nlpt | grep kube-scheduler

A) 10259

 

11.Notice that ETCD is listening on two ports. Which of these have more client connections established?

netstat -anp | grep etcd

A) 2379

 

 

728x90
반응형

'cloud > k8s(문제풀이)' 카테고리의 다른 글

[k8s] Network-weave  (0) 2022.08.01
[K8S]Network-CNI Weave  (0) 2022.08.01
[k8s]Kodekloud-storageClasses  (0) 2022.08.01
[k8s]kodekloud-Persistent volume Claims  (0) 2022.07.05
[cka] kodekloud-Network Policies  (0) 2022.07.01