Skip to content

Commit be49402

Browse files
committed
Revert "Remove explicit hardocdings"
This reverts commit bdf5b10.
1 parent bdf5b10 commit be49402

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

scenarios/AksOpenAiTerraform/terraform/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ module "node_pool" {
194194
max_pods = var.user_node_pool_max_pods
195195
max_count = var.user_node_pool_max_count
196196
min_count = var.user_node_pool_min_count
197+
node_count = var.user_node_pool_node_count
197198
os_type = var.user_node_pool_os_type
198199
priority = var.user_node_pool_priority
199200
tags = var.tags

scenarios/AksOpenAiTerraform/terraform/modules/aks/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ resource "azurerm_kubernetes_cluster" "aks_cluster" {
5050
max_pods = var.system_node_pool_max_pods
5151
max_count = var.system_node_pool_max_count
5252
min_count = var.system_node_pool_min_count
53+
node_count = var.system_node_pool_node_count
5354
os_disk_type = var.system_node_pool_os_disk_type
5455
tags = var.tags
5556
}

scenarios/AksOpenAiTerraform/terraform/modules/network_security_group/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ resource "azurerm_monitor_diagnostic_setting" "settings" {
4343

4444
enabled_log {
4545
category = "NetworkSecurityGroupRuleCounter"
46+
enabled = true
4647
}
4748
}

scenarios/AksOpenAiTerraform/terraform/variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,12 @@ variable "system_node_pool_min_count" {
254254
default = 3
255255
}
256256

257+
variable "system_node_pool_node_count" {
258+
description = "(Optional) The initial number of nodes which should exist within this Node Pool. Valid values are between 0 and 1000 and must be a value in the range min_count - max_count."
259+
type = number
260+
default = 3
261+
}
262+
257263
variable "user_node_pool_name" {
258264
description = "(Required) Specifies the name of the node pool."
259265
type = string
@@ -344,6 +350,12 @@ variable "user_node_pool_min_count" {
344350
default = 3
345351
}
346352

353+
variable "user_node_pool_node_count" {
354+
description = "(Optional) The initial number of nodes which should exist within this Node Pool. Valid values are between 0 and 1000 and must be a value in the range min_count - max_count."
355+
type = number
356+
default = 3
357+
}
358+
347359
variable "storage_account_kind" {
348360
description = "(Optional) Specifies the account kind of the storage account"
349361
default = "StorageV2"

0 commit comments

Comments
 (0)