You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# REQUIRED variables (must be set by caller of the module)
5
-
6
4
variable"node_pool_name" {
7
-
type=string
5
+
description="The name of the Node Pool which should be created within the Kubernetes Cluster. Changing this forces a new resource to be created."
6
+
type=string
8
7
}
9
8
10
9
variable"aks_cluster_id" {
11
-
type=string
10
+
description="The ID of the Kubernetes Cluster where this Node Pool should exist. Changing this forces a new resource to be created."
11
+
type=string
12
12
}
13
13
14
14
variable"zones" {
15
-
type=list(string)
16
-
default=[]
15
+
description="Specifies a list of Availability Zones in which this Kubernetes Cluster Node Pool should be located. Changing this forces a new Kubernetes Cluster Node Pool to be created."
16
+
type=list(string)
17
+
default=[]
17
18
}
18
19
19
20
variable"vnet_subnet_id" {
20
-
default=null
21
+
description="The ID of the Subnet where this Node Pool should exist. Changing this forces a new resource to be created."
22
+
type=string
23
+
default=null
21
24
}
22
25
23
26
variable"machine_type" {
24
-
type=string
27
+
description="The SKU which should be used for the Virtual Machines used in this Node Pool. Changing this forces a new resource to be created."
28
+
type=string
25
29
}
26
30
27
31
variable"os_disk_size" {
28
-
default=100
32
+
description="The Agent Operating System disk size in GB. Changing this forces a new resource to be created."
33
+
type=number
34
+
default=100
29
35
}
30
36
31
37
# TODO: enable after azurerm v2.37.0
@@ -42,55 +48,45 @@ variable "os_type" {
42
48
}
43
49
44
50
variable"node_count" {
45
-
default=1
51
+
description="The number of nodes which should exist within this Node Pool."
52
+
type=number
53
+
default=1
46
54
}
47
55
48
56
variable"enable_auto_scaling" {
49
-
default=false
57
+
description="Whether to enable auto-scaler."
58
+
type=bool
59
+
default=false
50
60
}
51
61
52
-
# For future - https://docs.microsoft.com/en-us/azure/aks/spot-node-pool
53
-
#
54
-
# variable "priority" {
55
-
# description = "The Priority for Virtual Machines within the Virtual Machine Scale Set that powers this Node Pool. Possible values are Regular and Spot. Defaults to Regular. Changing this forces a new resource to be created."
56
-
# type = string
57
-
# default = "Regular"
58
-
# }
59
-
60
-
# variable "eviction_policy" {
61
-
# description = "The Eviction Policy which should be used for Virtual Machines within the Virtual Machine Scale Set powering this Node Pool. Possible values are Deallocate and Delete. Changing this forces a new resource to be created. An Eviction Policy can only be configured when priority is set to Spot"
62
-
# type = string
63
-
# default = null
64
-
# }
65
-
66
-
# variable "spot_max_price" {
67
-
# description = "The maximum price you're willing to pay in USD per Virtual Machine. Valid values are -1 (the current on-demand price for a Virtual Machine) or a positive value with up to five decimal places. Changing this forces a new resource to be created."
68
-
# type = number
69
-
# default = -1
70
-
# }
71
-
72
62
variable"max_pods" {
73
63
description="The maximum number of pods that can run on each agent. Changing this forces a new resource to be created."
74
64
type=number
75
65
default=110
76
66
}
77
67
78
68
variable"max_nodes" {
79
-
default=1
69
+
description="The maximum number of nodes which should exist within this Node Pool."
70
+
type=number
71
+
default=1
80
72
}
81
73
82
74
variable"min_nodes" {
83
-
default=1
75
+
description="The minimum number of nodes which should exist within this Node Pool."
76
+
type=number
77
+
default=1
84
78
}
85
79
86
80
variable"node_taints" {
87
-
type=list
81
+
description="A list of the taints added to new nodes during node pool create and scale. Changing this forces a new resource to be created."
82
+
type=list(any)
88
83
default=[]
89
84
}
90
85
91
86
variable"node_labels" {
92
-
type=map
93
-
default={}
87
+
description="A map of Kubernetes labels which should be applied to nodes in this Node Pool."
description="Map of tags to be placed on the Resources"
103
-
type=map
99
+
type=map(any)
104
100
}
105
101
106
102
variable"proximity_placement_group_id" {
107
-
type=string
108
-
default=""
103
+
description="The ID of the Proximity Placement Group where the Virtual Machine Scale Set that powers this Node Pool will be placed. Changing this forces a new resource to be created."
104
+
type=string
105
+
default=""
109
106
}
107
+
108
+
# For future - https://docs.microsoft.com/en-us/azure/aks/spot-node-pool
109
+
#
110
+
# variable "priority" {
111
+
# description = "The Priority for Virtual Machines within the Virtual Machine Scale Set that powers this Node Pool. Possible values are Regular and Spot. Defaults to Regular. Changing this forces a new resource to be created."
112
+
# type = string
113
+
# default = "Regular"
114
+
# }
115
+
116
+
# variable "eviction_policy" {
117
+
# description = "The Eviction Policy which should be used for Virtual Machines within the Virtual Machine Scale Set powering this Node Pool. Possible values are Deallocate and Delete. Changing this forces a new resource to be created. An Eviction Policy can only be configured when priority is set to Spot"
118
+
# type = string
119
+
# default = null
120
+
# }
121
+
122
+
# variable "spot_max_price" {
123
+
# description = "The maximum price you're willing to pay in USD per Virtual Machine. Valid values are -1 (the current on-demand price for a Virtual Machine) or a positive value with up to five decimal places. Changing this forces a new resource to be created."
description="DNS prefix specified when creating the managed cluster."
21
+
type=string
22
+
}
9
23
10
24
variable"aks_cluster_location" {
11
25
description="The Azure Region in which all resources in this example should be provisioned"
26
+
type=string
12
27
default="eastus"
13
28
}
14
29
15
-
variableaks_cluster_sku_tier {
30
+
variable"aks_cluster_sku_tier" {
16
31
description="The SKU Tier that should be used for this Kubernetes Cluster. Possible values are Free and Paid (which includes the Uptime SLA). Defaults to Free"
error_message="ERROR: Valid types are \"Free\" and \"Paid\"!"
22
38
}
23
39
}
24
40
25
41
variable"aks_private_cluster" {
26
-
default=false
42
+
description="Enables cluster API endpoint to use Private IP address"
43
+
type=bool
44
+
default=false
27
45
}
28
46
29
47
variable"aks_cluster_node_count" {
30
-
default=4
48
+
description="(Required, when default_nodepool_auto_scaling=true) The minimum number of nodes which should exist in this Node Pool. If specified this must be between 1 and 100."
49
+
type=number
50
+
default=4
31
51
}
32
52
33
-
variable"aks_availability_zones" {}
53
+
variable"aks_availability_zones" {
54
+
description="A list of Availability Zones across which the Node Pool should be spread. Changing this forces a new resource to be created."
description="To enable auto-scaler to add nodes to AKS cluster"
81
+
type=bool
51
82
default=false
52
83
}
53
84
54
85
variable"aks_cluster_min_nodes" {
55
86
description="(Required, when aks_cluster_node_auto_scaling=true) The minimum number of nodes which should exist in this Node Pool. If specified this must be between 1 and 100."
87
+
type=number
56
88
default=1
57
89
}
90
+
58
91
variable"aks_cluster_max_nodes" {
59
92
description="(Required, when aks_cluster_node_auto_scaling=true) The maximum number of nodes which should exist in this Node Pool. If specified this must be between 1 and 100."
93
+
type=number
60
94
default=3
61
95
}
96
+
62
97
variable"aks_cluster_os_disk_size" {
63
-
description="(Optional) The size of the OS Disk which should be used for each agent in the Node Pool. Changing this forces a new resource to be created."
98
+
description="The size of the OS Disk which should be used for each agent in the Node Pool. Changing this forces a new resource to be created."
99
+
type=number
64
100
default=128
65
101
}
102
+
66
103
variable"aks_cluster_max_pods" {
67
-
description="(Optional) The maximum number of pods that can run on each agent. Changing this forces a new resource to be created."
104
+
description="The maximum number of pods that can run on each agent. Changing this forces a new resource to be created."
description="The CIDR to use for pod IP addresses. This field can only be set when network_plugin is set to kubenet. Changing this forces a new resource to be created."
description="The ID of the Log Analytics Workspace which the OMS Agent should send data to. Must be present if aks_oms_enabled is true"
194
+
type=string
149
195
}
150
196
151
-
variable"aks_uai_id"{
197
+
variable"aks_uai_id"{
152
198
description="User assigned identity ID"
153
-
default=null
154
-
}
199
+
type=string
200
+
default=null
201
+
}
155
202
156
-
variableclient_id {
157
-
default=""
203
+
variable"client_id" {
204
+
description="The Client ID for the Service Principal"
205
+
type=string
206
+
default=""
158
207
}
159
-
variableclient_secret {
160
-
default=""
208
+
209
+
variable"client_secret" {
210
+
description="The Client Secret for the Service Principal."
211
+
type=string
212
+
default=""
161
213
}
162
214
163
215
variable"cluster_egress_type" {
164
-
default="loadBalancer"
216
+
description="The outbound (egress) routing method which should be used for this Kubernetes Cluster. Possible values are loadBalancer and userDefinedRouting. Defaults to loadBalancer."
0 commit comments