Skip to content

Commit 4a51428

Browse files
authored
Merge pull request #15 from smerle33/vpc/v2
feat(vpc): new subnet to fit in /16 cidr
2 parents 1918469 + 18c9ce7 commit 4a51428

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vpc.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module "vpc" {
1111
version = "5.13.0"
1212

1313
name = "${local.cluster_name}-vpc"
14-
cidr = "10.0.0.0/8"
14+
cidr = "10.0.0.0/16"
1515

1616

1717
# dual stack https://github.com/terraform-aws-modules/terraform-aws-vpc/blob/v5.13.0/examples/ipv6-dualstack/main.tf
@@ -31,13 +31,13 @@ module "vpc" {
3131
# first VM ci.jenkins.io
3232
"10.0.0.0/24", # 10.0.0.1 -> 10.0.0.254 (254 ips)
3333
# second for VM agent jenkins
34-
"10.1.0.0/20", # 10.1.0.1 -> 10.1.15.254 (4094 ips)
34+
"10.0.1.0/24", # 10.0.1.1 -> 10.0.1.254 (254 ips)
3535
# next for eks agents
36-
"10.2.0.0/20", # 10.2.0.1 -> 10.2.15.254 (4094 ips)
36+
"10.0.2.0/24", # 10.0.2.1 -> 10.0.2.254 (254 ips)
3737
]
3838
public_subnets = [ # need at least one for the module (line 1085 : subnet_id = element(aws_subnet.public[*].id,var.single_nat_gateway ? 0 : count.index,))
3939
#fake one
40-
"10.254.0.0/24", # 10.254.0.1 -> 10.254.0.254 (254 ips)
40+
"10.0.254.0/24", # 100.0.254.1 -> 10.0.254.254 (254 ips)
4141
]
4242

4343
# One NAT gateway per subnet (default)

0 commit comments

Comments
 (0)