Skip to content

Commit 6a718f3

Browse files
committed
Remove more node count vars
1 parent 624e8bc commit 6a718f3

File tree

6 files changed

+0
-35
lines changed

6 files changed

+0
-35
lines changed

scenarios/AksOpenAiTerraform/terraform/main.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ module "aks_cluster" {
141141
pod_subnet_id = module.virtual_network.subnet_ids[var.pod_subnet_name]
142142
system_node_pool_availability_zones = var.system_node_pool_availability_zones
143143
system_node_pool_node_labels = var.system_node_pool_node_labels
144-
system_node_pool_enable_auto_scaling = var.system_node_pool_enable_auto_scaling
145144
system_node_pool_enable_host_encryption = var.system_node_pool_enable_host_encryption
146145
system_node_pool_enable_node_public_ip = var.system_node_pool_enable_node_public_ip
147146
system_node_pool_max_pods = var.system_node_pool_max_pods
@@ -184,7 +183,6 @@ module "node_pool" {
184183
availability_zones = var.user_node_pool_availability_zones
185184
vnet_subnet_id = module.virtual_network.subnet_ids[var.user_node_pool_subnet_name]
186185
pod_subnet_id = module.virtual_network.subnet_ids[var.pod_subnet_name]
187-
enable_auto_scaling = var.user_node_pool_enable_auto_scaling
188186
enable_host_encryption = var.user_node_pool_enable_host_encryption
189187
enable_node_public_ip = var.user_node_pool_enable_node_public_ip
190188
orchestrator_version = var.kubernetes_version

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ resource "azurerm_kubernetes_cluster" "aks_cluster" {
4444
pod_subnet_id = var.pod_subnet_id
4545
zones = var.system_node_pool_availability_zones
4646
node_labels = var.system_node_pool_node_labels
47-
enable_auto_scaling = var.system_node_pool_enable_auto_scaling
4847
enable_host_encryption = var.system_node_pool_enable_host_encryption
4948
enable_node_public_ip = var.system_node_pool_enable_node_public_ip
5049
max_pods = var.system_node_pool_max_pods

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,6 @@ variable "system_node_pool_subnet_address_prefix" {
134134
type = list(string)
135135
}
136136

137-
variable "system_node_pool_enable_auto_scaling" {
138-
description = "(Optional) Whether to enable auto-scaler. Defaults to false."
139-
type = bool
140-
default = true
141-
}
142-
143137
variable "system_node_pool_enable_host_encryption" {
144138
description = "(Optional) Should the nodes in this Node Pool have host encryption enabled? Defaults to false."
145139
type = bool

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ resource "azurerm_kubernetes_cluster_node_pool" "node_pool" {
88
zones = var.availability_zones
99
vnet_subnet_id = var.vnet_subnet_id
1010
pod_subnet_id = var.pod_subnet_id
11-
enable_auto_scaling = var.enable_auto_scaling
1211
enable_host_encryption = var.enable_host_encryption
1312
enable_node_public_ip = var.enable_node_public_ip
1413
proximity_placement_group_id = var.proximity_placement_group_id
1514
orchestrator_version = var.orchestrator_version
1615
max_pods = var.max_pods
1716
max_count = var.max_count
1817
min_count = var.min_count
19-
node_count = var.node_count
2018
os_disk_size_gb = var.os_disk_size_gb
2119
os_disk_type = var.os_disk_type
2220
os_type = var.os_type

scenarios/AksOpenAiTerraform/terraform/modules/node_pool/variables.tf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ variable "availability_zones" {
1919
default = ["1", "2", "3"]
2020
}
2121

22-
variable "enable_auto_scaling" {
23-
description = "(Optional) Whether to enable auto-scaler. Defaults to false."
24-
type = bool
25-
default = false
26-
}
27-
2822
variable "enable_host_encryption" {
2923
description = "(Optional) Should the nodes in this Node Pool have host encryption enabled? Defaults to false."
3024
type = bool
@@ -126,12 +120,6 @@ variable "min_count" {
126120
default = 3
127121
}
128122

129-
variable "node_count" {
130-
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."
131-
type = number
132-
default = 3
133-
}
134-
135123
variable resource_group_name {
136124
description = "Specifies the resource group name"
137125
type = string

scenarios/AksOpenAiTerraform/terraform/variables.tf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,6 @@ variable "system_node_pool_name" {
200200
type = string
201201
}
202202

203-
variable "system_node_pool_enable_auto_scaling" {
204-
description = "(Optional) Whether to enable auto-scaler. Defaults to false."
205-
type = bool
206-
default = true
207-
}
208-
209203
variable "system_node_pool_enable_host_encryption" {
210204
description = "(Optional) Should the nodes in this Node Pool have host encryption enabled? Defaults to false."
211205
type = bool
@@ -260,12 +254,6 @@ variable "user_node_pool_availability_zones" {
260254
default = ["1", "2", "3"]
261255
}
262256

263-
variable "user_node_pool_enable_auto_scaling" {
264-
description = "(Optional) Whether to enable auto-scaler. Defaults to false."
265-
type = bool
266-
default = true
267-
}
268-
269257
variable "user_node_pool_enable_host_encryption" {
270258
description = "(Optional) Should the nodes in this Node Pool have host encryption enabled? Defaults to false."
271259
type = bool

0 commit comments

Comments
 (0)