amazon-apigateway-ingress-controller
amazon-apigateway-ingress-controller copied to clipboard
Cloudformation subnet issue
Hi Guys,
I have noticed that automatic subnets ids discovery is prone to errors. It is happening when you have multiple private subnets in the same availability zone.
What's is happening: APIGW ingress controller is creating a CloudFormation template that contains the list of all private subnets, in our case list contains two private subnets in each availability zone. The creation of a cloud formation stack initiated by the APIGW ingress controller is failing, due to the inability to create a network load balancer located in more than one subnet in the same availability zone.
Suggested solution: Implement additional annotation similar to ALB ingress controller to provide explicitly subnet ids: e. g. apigateway.ingress.kubernetes.io/subnets: s-id1, s-id2, s-id3
Best Regards, Marek K.
+1