1. Determining the Node IP Range
First, verify the IP addresses of the nodes in your cluster (note that these addresses do not pertain to pods or services). Run the following command:A /24 subnet mask means the last octet is reserved for host addresses.
2. Identifying the Pod IP Range
To understand your pod network setup, check node details with:3. Determining the Service IP Range
The service IP range for the cluster is defined in the API server configuration. Locate the kube-apiserver manifest file, typically found at/etc/kubernetes/manifests/kube-apiserver.yaml. Look for the flag:
Service cluster IP range, API server configuration, Kubernetes networking setup.
4. Examining the Kube Proxy Deployment
4.1 Number of Kube Proxy Pods
Kube-proxy is typically deployed as one pod per node. To count the number of kube-proxy pods, run:4.2 Kube Proxy Proxy Mode
To determine the proxy mode used by kube-proxy, check the logs of one of the kube-proxy pods:5. Ensuring Kube Proxy Runs on Every Node
Kube-proxy must run on every node to manage the network rules effectively. This is achieved by deploying kube-proxy as a DaemonSet. A DaemonSet automatically ensures that one instance of a pod runs on every node in the cluster. To verify this configuration, execute:Ensure that any changes to the DaemonSet configuration are carefully validated to prevent disruptions to cluster networking.
Summary
By reviewing node interfaces, Weave logs, and the API server configuration, you can confirm the cluster’s networking setup and understand the kube-proxy deployment strategy. For further details on Kubernetes networking, check out the Kubernetes Documentation.