Open dduportal opened 1 month ago
to provide multiple IPs for the gateway:
we can use https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/nat_gateway#secondary_allocation_ids
but it's not available yet with the module https://github.com/terraform-aws-modules/terraform-aws-vpc/pull/1109
we decided (with @dduportal) to use one gateway per subnet with one ip per gateway for now as it is not yet available with the module and will imply to change it or define by hand all the resources.
Update regarding network restrictions:
Update regarding No need for multiple availability zones (when possible)
it is mandatory to have at least 2 Availability Zones as per : https://docs.aws.amazon.com/eks/latest/userguide/network-reqs.html#network-requirements-subnets
but we should still be able to lock our nodes to only one AZ to be able to use our EBS volumes (not spanning on multiple AZs) as per : https://github.com/terraform-aws-modules/terraform-aws-eks/issues/1252
Update: we need to adjust the initial hypothesis (as per our findings):
/24
to /23
=> This should be implemented in a single big PR: https://github.com/jenkins-infra/terraform-aws-sponsorship/pull/36
We need to define virtual networking for ci.jenkins.io in AWS.
No need for multiple availability zones (when possible)as we'll use EBS for disks which does NOT span to different zone - https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes.html and a simpler setup (we used EKS in jenkins-infra/aws with multiple AZs which was a nightmare to maintain for no added value)private subnets only(to control allowed outbound connections) not possible, we need a public subnet for gw.