feat: make AZ suffixes configurable for regions with non-standard AZs
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user