Skip to main content
This lab inspects cluster networking to answer a set of practical questions about node IP ranges, Pod CIDR, Service ClusterIP range, and kube-proxy configuration. Each section shows the commands to run, sample output, and a short explanation of how the answer was derived.

Question 1 — What network range are the nodes in the cluster part of?

  1. List nodes and include their internal IPs:
Sample output (trimmed):
  1. On a node, inspect its network interfaces to confirm which interface holds the Internal IP:
Relevant line (trimmed):
Explanation: The node IP is 192.6.10.10 with a /24 netmask, which indicates the node network is 192.6.10.0/24. A /24 provides host addresses from 192.6.10.1 through 192.6.10.254. Answer: 192.6.10.0/24

Question 2 — What is the range of IP addresses configured for Pods on this cluster?

Weave Net (the CNI in this cluster) defines the Pod IP allocation range. Inspect the Weave Net pod logs to find the ipalloc-range:
Relevant log lines (trimmed):
Explanation: The logs show Weave Net is configured to allocate Pod IPs from 10.244.0.0/16. Answer: 10.244.0.0/16

Question 3 — What is the IP range configured for the services within the cluster?

The API server exposes a flag that sets the Service ClusterIP range. Inspect the kube-apiserver manifest (commonly under /etc/kubernetes/manifests on the control plane) and look for --service-cluster-ip-range: Example snippet from the manifest:
Answer: 10.96.0.0/12

Question 4 — How many kube-proxy pods are deployed in this cluster?

List pods in the kube-system namespace:
Example output (trimmed):
Explanation: Two kube-proxy pods are running. Answer: 2

Question 5 — What type of proxy is kube-proxy configured to use?

Check the kube-proxy startup logs to see which proxier it selects:
Relevant log lines:
Explanation: The kube-proxy logs explicitly state it is using the iptables proxier. Answer: iptables

Question 6 — How does the Kubernetes cluster ensure that the kube-proxy pod runs on all nodes?

Inspect controllers across namespaces to find how kube-proxy is deployed:
Relevant trimmed section:
Explanation: kube-proxy is deployed as a DaemonSet. A DaemonSet ensures that a copy of the pod runs on every node that matches its node selector and tolerations, which is why kube-proxy is present on each node. Answer: kube-proxy is deployed as a DaemonSet.
Quick summary:
  • Node network: 192.6.10.0/24
  • Pod CIDR (Weave Net): 10.244.0.0/16
  • Service ClusterIP range: 10.96.0.0/12
  • kube-proxy pods: 2
  • kube-proxy mode: iptables
  • kube-proxy deployed via: DaemonSet

Summary table

Watch Video