Skip to content

Commit

Permalink
feat(vnets) add a new subnet for the ci.jenkins.io agents 1 AKS clust…
Browse files Browse the repository at this point in the history
…er - ref. jenkins-infra/helpdesk#2649 (#234)

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
  • Loading branch information
dduportal committed May 7, 2024
1 parent acd7c38 commit 4a60ac8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gateways.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ module "ci_jenkins_io_outbound_sponsorship" {
subnet_names = [
azurerm_subnet.public_jenkins_sponsorship_vnet_ci_jenkins_io_agents.name,
azurerm_subnet.ci_jenkins_io_controller_sponsorship.name,
## TODO: uncomment once the subnet is created to avoid "not found" errors
# azurerm_subnet.ci_jenkins_io_kubernetes_sponsorship.name,
]
}

Expand Down
7 changes: 7 additions & 0 deletions vnets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,13 @@ resource "azurerm_subnet" "ci_jenkins_io_controller_sponsorship" {
virtual_network_name = azurerm_virtual_network.public_jenkins_sponsorship.name
address_prefixes = ["10.200.1.0/24"] # 10.200.1.1 - 10.200.1.254
}
resource "azurerm_subnet" "ci_jenkins_io_kubernetes_sponsorship" {
provider = azurerm.jenkins-sponsorship
name = "${azurerm_virtual_network.public_jenkins_sponsorship.name}-ci_jenkins_io_kubernetes"
resource_group_name = azurerm_virtual_network.public_jenkins_sponsorship.resource_group_name
virtual_network_name = azurerm_virtual_network.public_jenkins_sponsorship.name
address_prefixes = ["10.201.0.0/24"] # 10.201.0.0 - 10.201.0.254
}

# This subnet is reserved as "delegated" for the pgsql server on the public-db network
# Ref. https://docs.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-networking
Expand Down

0 comments on commit 4a60ac8

Please sign in to comment.