Skip to content

Commit

Permalink
Change the default Pod CIDR to 10.20.0.0/14
Browse files Browse the repository at this point in the history
* Change the default Pod CIDR from 10.2.0.0/16 to 10.20.0.0/14
(10.20.0.0 - 10.23.255.255) to support 1024 nodes by default
* Most CNI providers divide the Pod CIDR so that each node has
a /24 to allocate to local pods (256). The previous `10.2.0.0/16`
default only fits 256 /24's so 256 nodes were supported without
customizing the pod_cidr
  • Loading branch information
dghubble committed Dec 23, 2024
1 parent c775b4d commit 0d3f173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ variable "network_ip_autodetection_method" {
variable "pod_cidr" {
type = string
description = "CIDR IP range to assign Kubernetes pods"
default = "10.2.0.0/16"
default = "10.20.0.0/14"
}

variable "service_cidr" {
Expand Down

0 comments on commit 0d3f173

Please sign in to comment.