Skip to content

Commit

Permalink
fix(publick8s) specify pod subnets explicitly (#431)
Browse files Browse the repository at this point in the history
Ref.
jenkins-infra/helpdesk#3582 (comment)

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
  • Loading branch information
dduportal authored Jul 7, 2023
1 parent 24b5e8c commit bc3d4a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions publick8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ resource "azurerm_kubernetes_cluster" "publick8s" {
orchestrator_version = local.kubernetes_versions["publick8s"]
node_count = 1
vnet_subnet_id = data.azurerm_subnet.publick8s_tier.id
pod_subnet_id = data.azurerm_subnet.publick8s_tier.id
tags = local.default_tags
zones = [3]
}
Expand All @@ -80,6 +81,7 @@ resource "azurerm_kubernetes_cluster_node_pool" "publicpool" {
max_count = 10
zones = [3]
vnet_subnet_id = data.azurerm_subnet.publick8s_tier.id
pod_subnet_id = data.azurerm_subnet.publick8s_tier.id
tags = local.default_tags
}

Expand All @@ -95,6 +97,7 @@ resource "azurerm_kubernetes_cluster_node_pool" "x86medium" {
max_count = 10
zones = [3]
vnet_subnet_id = data.azurerm_subnet.publick8s_tier.id
pod_subnet_id = data.azurerm_subnet.publick8s_tier.id
tags = local.default_tags
}

Expand All @@ -110,6 +113,7 @@ resource "azurerm_kubernetes_cluster_node_pool" "arm64small" {
max_count = 10
zones = [1]
vnet_subnet_id = data.azurerm_subnet.publick8s_tier.id
pod_subnet_id = data.azurerm_subnet.publick8s_tier.id
tags = local.default_tags
}

Expand All @@ -125,6 +129,7 @@ resource "azurerm_kubernetes_cluster_node_pool" "arm64small2" {
max_count = 10
zones = [1]
vnet_subnet_id = data.azurerm_subnet.publick8s_tier.id
pod_subnet_id = data.azurerm_subnet.publick8s_tier.id
tags = local.default_tags
node_taints = [
"kubernetes.io/arch=arm64:NoSchedule",
Expand Down

0 comments on commit bc3d4a6

Please sign in to comment.