Interview Prep/Networking/Kubernetes Networking

How do you size the pod CIDR and service CIDR for a new cluster?

IntermediateScenarioKubernetes Networking
Answer

Situation read → They are hard to change later and must not overlap with anything reachable.

What I'd do →

  1. Estimate max nodes x pods per node, for example 500 nodes x 110 pods needs about 55,000 IPs, so a /16 for pods
  2. Choose a service CIDR like 10.96.0.0/16 that doesn't overlap with VPC, on-prem or peer ranges
  3. With the VPC CNI check subnet capacity instead
  4. In kubeadm: --pod-network-cidr and --service-cidr
  5. Record choices in the IPAM

Why → Overlaps cause unreachable destinations that are very hard to diagnose later.

Interview tip → Say you plan for growth and keep ranges outside corporate space.

All Networking questions Roadmap: Networking for DevOps

More on Kubernetes Networking