1. How Many Nodes Are in the Cluster?
To find out how many nodes are part of your cluster, run:2. What Is the Internal IP Address of the Control Plane Node?
Use the-o wide option with kubectl get nodes to view additional details, including the internal IP address:
192.5.114.3.
3. Which Network Interface Is Configured for Cluster Connectivity on the Control Plane Node?
To determine which network interface is used for cluster connectivity, run:.3). In the sample provided, the eth0 interface has the correct binding.
The interface selected for cluster connectivity is the one with the IP address matching that of the control plane node.
4. What Is the MAC Address of the Control Plane Node’s Network Interface?
Once you know the interface name (in this example,eth0), you can use the following command to display its MAC address:
5e:9b:da:c5:43:fa. Use this value as needed.
5. What Is the IP Address Assigned to Node One?
To discover the internal IP address of the worker node (node one), run:node01. In the sample output below, the worker node’s internal IP address is 192.5.114.6.
6. What Is the MAC Address Assigned to Node One?
To retrieve node one’s MAC address, SSH into node one and execute:192.5.114.6). The corresponding MAC address—in this case, 02:42:c0:05:72:06—is the answer.
7. What Is the Container Runtime’s Bridge Interface on the Host?
ContainerD commonly uses a CNI plugin to manage networking, which creates a bridge interface. Typically, this interface is namedcni0. Confirm by listing all network interfaces:
cni0 interface is visible and serves as the bridge for container connectivity.
The
cni0 bridge interface is essential for container networking. Ensure your CNI configuration is correct for proper connectivity.8. What Is the State of Interface cni0?
To check the current state of thecni0 interface, run:
UP.
9. What Is the Default Gateway Used When Pinging Google from the Control Plane Node?
To identify the route taken for external traffic, inspect the default routing table using:172.25.0.1 on interface eth1 is used for external connectivity.
172.25.0.1.
10. On Which Port Is the Kube Scheduler Listening?
To determine the port on which the Kube Scheduler is active, use the netstat command with filtering options:10259 on localhost.
11. Which ETCD Port Sees More Client Connections?
ETCD typically listens on multiple ports, such as2379 (client communication) and 2380 (peer communication). To inspect ETCD-related sockets, run:
Typically, port
2379 will show significantly more client connections compared to port 2380, which is reserved for peer-to-peer communication among ETCD members.This concludes the lab. Each step illustrated above demonstrates how to gather network and runtime configuration details within your Kubernetes cluster environment. For further reading on Kubernetes networking and node configuration, please visit the Kubernetes Documentation.