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(privatek8s): create dedicated subnet for controllers infra.ci and release.ci #220

Merged
merged 3 commits into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion vnets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,27 @@ resource "azurerm_subnet" "privatek8s_release_tier" {
name = "privatek8s-release-tier"
resource_group_name = azurerm_resource_group.private.name
virtual_network_name = azurerm_virtual_network.private.name
address_prefixes = ["10.250.0.0/25"]
address_prefixes = ["10.250.0.0/25"] # from 10.250.0.0 to 10.250.0.127
# Enable KeyVault and Storage service endpoints so the cluster can access secrets to update other clusters
service_endpoints = ["Microsoft.KeyVault", "Microsoft.Storage"]
}

# Dedicated subnet for the release nodes of the "privatek8s" for the controller infraci AKS cluster resources
resource "azurerm_subnet" "privatek8s_infra_ci_controller_tier" {
name = "privatek8s-infraci-ctrl-tier"
resource_group_name = azurerm_resource_group.private.name
virtual_network_name = azurerm_virtual_network.private.name
address_prefixes = ["10.250.0.128/28"] # from 10.250.0.128 to 10.250.0.143
# Enable KeyVault and Storage service endpoints so the cluster can access secrets to update other clusters
service_endpoints = ["Microsoft.KeyVault", "Microsoft.Storage"]
}

# Dedicated subnet for the private nodes of the "privatek8s" for the controller releaseci AKS cluster resources
resource "azurerm_subnet" "privatek8s_release_ci_controller_tier" {
name = "privatek8s-releaseci-ctrl-tier"
resource_group_name = azurerm_resource_group.private.name
virtual_network_name = azurerm_virtual_network.private.name
address_prefixes = ["10.250.0.144/28"] # from 10.250.0.144 to 10.250.0.159
# Enable KeyVault and Storage service endpoints so the cluster can access secrets to update other clusters
service_endpoints = ["Microsoft.KeyVault", "Microsoft.Storage"]
}
Expand Down