Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vnets) add 2 public subnets for ci.jenkins.io agents and controller #62

Merged

Conversation

dduportal
Copy link
Contributor

@dduportal dduportal commented Apr 12, 2023

Related to jenkins-infra/helpdesk#2981, this PR adds 2 subnets for ci.jenkins.io:

The goal is to start spinning up VM agents for ci.jenkins in these new subnets, closer to the artifact caching proxy, and prepare of the migration of ci.jenkins.io's to the new public network as well.

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
@dduportal dduportal marked this pull request as ready for review April 12, 2023 16:17
@dduportal dduportal requested a review from a team as a code owner April 12, 2023 16:17
virtual_network_name = azurerm_virtual_network.public.name
address_prefixes = [
"10.245.4.0/24", # 10.245.4.1 - 10.245.4.254
"fdb5:c0c9:9cfc:7658::/64", # smaller size as it only need to support public IPv6 for ci.jenkins.io controller
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know very little about ipv6 as I've never really used it but this seems to show /64 being very big?
https://docs.netgate.com/pfsense/en/latest/network/ipv6/subnets.html

but I could be wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went through the same thought process, until I learnt that IETF recommends a /64 for subnets most of the time:

A /64 is a standard size IPv6 subnet as defined by the IETF. It is smallest subnet that can used locally if auto configuration is desired.

Good thing with IPv6, as I understand it, is that overlap won't be a problem as the Prefix cna be used accordingly (compared to the IPv4 CIDR and subnets).

@dduportal dduportal merged commit 803007a into jenkins-infra:main Apr 13, 2023
@dduportal dduportal deleted the feat/add-ci.jenkins.io-public-subnets branch April 13, 2023 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants