File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,8 @@ IMAGE_PULL_SECRET=
28
28
# https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/ingress/annotations/#scheme
29
29
# https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html#load-balancer-scheme
30
30
USE_INTERNAL_ALB = false
31
+
32
+ # Configure custom Availability Zone/s that ALB will route traffic to.
33
+ # https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/ingress/annotations/#subnets
34
+ # Default: use auto discovery (empty)
35
+ ALB_SUBNETS =
Original file line number Diff line number Diff line change @@ -93,6 +93,10 @@ export class GitpodStack extends cdk.Stack {
93
93
manifest . metadata . annotations [ "alb.ingress.kubernetes.io/scheme" ] = 'internet-facing' ;
94
94
}
95
95
96
+ if ( process . env . ALB_SUBNETS ) {
97
+ manifest . metadata . annotations [ "alb.ingress.kubernetes.io/subnets" ] = `${ process . env . ALB_SUBNETS } ` ;
98
+ }
99
+
96
100
const gitpodIngress = new KubernetesManifest ( this , "gitpod-ingress" , {
97
101
cluster,
98
102
overwrite : true ,
You can’t perform that action at this time.
0 commit comments