Skip to content

Commit

Permalink
Merge pull request #392 from lonegunmanb/e-387
Browse files Browse the repository at this point in the history
Support for Proximity placement group for default node pool
  • Loading branch information
jiaweitao001 authored Jun 14, 2023
2 parents ede3176 + 38626c5 commit 15b116c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ resource "azurerm_kubernetes_cluster" "main" {
os_disk_type = var.os_disk_type
os_sku = var.os_sku
pod_subnet_id = var.pod_subnet_id
proximity_placement_group_id = var.agents_proximity_placement_group_id
scale_down_mode = var.scale_down_mode
tags = merge(var.tags, var.agents_tags)
temporary_name_for_rotation = var.temporary_name_for_rotation
Expand Down Expand Up @@ -158,6 +159,7 @@ resource "azurerm_kubernetes_cluster" "main" {
os_disk_type = var.os_disk_type
os_sku = var.os_sku
pod_subnet_id = var.pod_subnet_id
proximity_placement_group_id = var.agents_proximity_placement_group_id
scale_down_mode = var.scale_down_mode
tags = merge(var.tags, var.agents_tags)
temporary_name_for_rotation = var.temporary_name_for_rotation
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ variable "agents_pool_name" {
nullable = false
}

variable "agents_proximity_placement_group_id" {
type = string
default = null
description = "(Optional) The ID of the Proximity Placement Group of the default Azure AKS agentpool (nodepool). Changing this forces a new resource to be created."
}

variable "agents_size" {
type = string
default = "Standard_D2s_v3"
Expand Down

0 comments on commit 15b116c

Please sign in to comment.