feat: make AZ suffixes configurable for regions with non-standard AZs

This commit is contained in:
2026-04-22 12:19:38 -03:00
parent 92b1041342
commit 10b3c1907e
3 changed files with 12 additions and 4 deletions
@@ -22,6 +22,8 @@ spec:
domainName: string | default="cluster.example.com"
vpc:
create: boolean | default=true
az1Suffix: string | default="a"
az2Suffix: string | default="b"
vpcCidr: string | default="10.0.0.0/16"
publicSubnet1Cidr: string | default="10.0.1.0/24"
publicSubnet2Cidr: string | default="10.0.2.0/24"
@@ -69,6 +71,8 @@ spec:
spec:
name: ${schema.spec.name}
region: ${schema.spec.region}
az1Suffix: ${schema.spec.vpc.az1Suffix}
az2Suffix: ${schema.spec.vpc.az2Suffix}
cidr:
vpcCidr: ${schema.spec.vpc.vpcCidr}
publicSubnet1Cidr: ${schema.spec.vpc.publicSubnet1Cidr}
+6 -4
View File
@@ -12,6 +12,8 @@ spec:
spec:
name: string
region: string
az1Suffix: string | default="a"
az2Suffix: string | default="b"
cidr:
vpcCidr: string | default="10.0.0.0/16"
publicSubnet1Cidr: string | default="10.0.1.0/24"
@@ -173,7 +175,7 @@ spec:
annotations:
services.k8s.aws/region: ${schema.spec.region}
spec:
availabilityZone: ${schema.spec.region}a
availabilityZone: ${schema.spec.region}${schema.spec.az1Suffix}
cidrBlock: ${schema.spec.cidr.publicSubnet1Cidr}
mapPublicIPOnLaunch: true
vpcID: ${vpc.status.vpcID}
@@ -194,7 +196,7 @@ spec:
annotations:
services.k8s.aws/region: ${schema.spec.region}
spec:
availabilityZone: ${schema.spec.region}b
availabilityZone: ${schema.spec.region}${schema.spec.az2Suffix}
cidrBlock: ${schema.spec.cidr.publicSubnet2Cidr}
mapPublicIPOnLaunch: true
vpcID: ${vpc.status.vpcID}
@@ -215,7 +217,7 @@ spec:
annotations:
services.k8s.aws/region: ${schema.spec.region}
spec:
availabilityZone: ${schema.spec.region}a
availabilityZone: ${schema.spec.region}${schema.spec.az1Suffix}
cidrBlock: ${schema.spec.cidr.privateSubnet1Cidr}
vpcID: ${vpc.status.vpcID}
routeTables:
@@ -235,7 +237,7 @@ spec:
annotations:
services.k8s.aws/region: ${schema.spec.region}
spec:
availabilityZone: ${schema.spec.region}b
availabilityZone: ${schema.spec.region}${schema.spec.az2Suffix}
cidrBlock: ${schema.spec.cidr.privateSubnet2Cidr}
vpcID: ${vpc.status.vpcID}
routeTables:
@@ -20,6 +20,8 @@ clusters:
k8sVersion: "1.34"
vpc:
create: true
az1Suffix: "a"
az2Suffix: "c"
vpcCidr: "10.1.0.0/16"
publicSubnet1Cidr: "10.1.1.0/24"
publicSubnet2Cidr: "10.1.2.0/24"