File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ resource "azurerm_kubernetes_cluster" "k8s" {
52
52
orchestrator_version = var. default_node_pool_k8s_version
53
53
zones = var. availability_zones
54
54
temporary_name_for_rotation = var. temporary_name_for_rotation
55
+ enable_auto_scaling = var. auto_scaling_enable
56
+ min_count = var. auto_scaling_min_node_count
57
+ max_count = var. auto_scaling_max_node_count
55
58
}
56
59
57
60
dynamic "api_server_access_profile" {
Original file line number Diff line number Diff line change @@ -92,7 +92,24 @@ variable "node_pools" {
92
92
}))
93
93
default = {}
94
94
description = " Additional node pools to set up"
95
+ }
96
+
97
+ variable "auto_scaling_enable" {
98
+ type = bool
99
+ description = " Enable auto scaling of node pool"
100
+ default = false
101
+ }
95
102
103
+ variable "auto_scaling_min_node_count" {
104
+ type = string
105
+ description = " Enable auto scaling of node pool"
106
+ default = " 1"
107
+ }
108
+
109
+ variable "auto_scaling_max_node_count" {
110
+ type = string
111
+ description = " Enable auto scaling of node pool"
112
+ default = " 1"
96
113
}
97
114
98
115
variable "load_balancer_sku" {
You can’t perform that action at this time.
0 commit comments