jenkins-infra / helpdesk

Open your Infrastructure related issues here for the Jenkins project
https://github.com/jenkins-infra/helpdesk/issues/new/choose
17 stars 10 forks source link

[ci.jenkins.io] Define virtual networking for AWS #4320

Open dduportal opened 1 month ago

dduportal commented 1 month ago

We need to define virtual networking for ci.jenkins.io in AWS.

smerle33 commented 1 month ago

to provide multiple IPs for the gateway:

https://aws.amazon.com/blogs/networking-and-content-delivery/attach-multiple-ips-to-a-nat-gateway-to-scale-your-egress-traffic-pattern/

image

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.

dduportal commented 3 weeks ago

Update regarding network restrictions:

smerle33 commented 1 week ago

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

dduportal commented 22 hours ago

Update: we need to adjust the initial hypothesis (as per our findings):

=> This should be implemented in a single big PR: https://github.com/jenkins-infra/terraform-aws-sponsorship/pull/36