Network Configuration
Network Configuration Components
1
Pod CIDR (Pod IP Address Range)
What is Pod CIDR?
Important Considerations
If you configure Pod CIDR as 192.168.0.0/16:
- Total IP addresses available: 65,536
- Each node gets a /24 subnet: 256 IPs per node
- Maximum nodes you can create: 256 nodes
- Each node can run up to 256 pods (minus system overhead)Pod CIDR: X.X.X.X/N
Node Subnet: /24 (fixed)
Maximum Nodes = 2^(24-N)
Examples:
- /16 Pod CIDR = 2^(24-16) = 256 nodes
- /17 Pod CIDR = 2^(24-17) = 128 nodes
- /18 Pod CIDR = 2^(24-18) = 64 nodes
- /20 Pod CIDR = 2^(24-20) = 16 nodesBest Practices for Pod CIDR
2
3
VPC and Subnet Configuration
VPC KRN (Required)
Subnet KRN (Required)
When you create a Kubernetes Service of type LoadBalancer:
- The LoadBalancer is created in the subnet you specified in Subnet KRN
- One IP address is allocated from that subnet for the LoadBalancer
- This IP is taken from your subnet's available IP poolVPC: 10.0.0.0/16
Subnet for Cluster: 10.0.1.0/24 (254 usable IPs)
If you create 10 LoadBalancer services:
- 10 IPs will be used from the 10.0.1.0/24 subnet
- Remaining IPs: 244 available for LoadBalancers or other resourcesBest Practices for VPC/Subnet
- Subnet for nodes: 10.0.1.0/24 (256 IPs)
- Subnet for LoadBalancers: 10.0.2.0/24 (256 IPs)
- Reserve IPs for future growthNetwork Configuration Examples
Example 1: Small Development Cluster
Cluster Name: dev-cluster
Pod CIDR: 192.168.0.0/20 (supports up to 16 nodes)
Service CIDR: 10.100.0.0/20 (4,096 services)
VPC KRN: krn:vpc:region:account:user:vpc:dev-vpc
Subnet KRN: krn:vpc:region:account:user:subnet:dev-subnet-1
Node Subnet (in VPC): 172.16.1.0/24 (for node IPs)
Note: Pod CIDR (192.168.x.x), Service CIDR (10.100.x.x), and Node Subnet (172.16.x.x)
are all in different ranges with no overlap.
Use Case:
- 5-10 nodes
- Development and testing
- Limited LoadBalancersExample 2: Medium Production Cluster
Example 3: Large Enterprise Cluster
Network Configuration Checklist
Common Mistakes to Avoid
❌ Pod CIDR Too Small
❌ Using Reserved Range
❌ Overlapping CIDRs
❌ Insufficient Subnet IPs
❌ Invalid CIDR Range
Understanding Network Flow
Next Steps
Need Help?
Last updated
Was this helpful?

