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 →
- Estimate max nodes x pods per node, for example 500 nodes x 110 pods needs about 55,000 IPs, so a /16 for pods
- Choose a service CIDR like
10.96.0.0/16that doesn't overlap with VPC, on-prem or peer ranges - With the VPC CNI check subnet capacity instead
- In kubeadm:
--pod-network-cidrand--service-cidr - 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.
More on Kubernetes Networking
Explain the Kubernetes networking model in one minute.BeginnerClusterIP, NodePort and LoadBalancer: when do you use each?BeginnerHow does a pod find another service by name?BeginnerService versus Ingress: what is the difference?BeginnerWhat does a CNI plugin do and which ones do you know?BeginnerHow do you reach a pod from your laptop for debugging without exposing it?Beginner