-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
304 lines (252 loc) · 10.1 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
### AKS
variable "create_aks" {
type = bool
description = "Do you want to create AKS Cluster"
default = true
}
variable "name" {
type = string
description = "(Required) The name of the Managed Kubernetes Cluster to create. Changing this forces a new resource to be created."
}
variable "location" {
type = string
description = "(Required) The location where the Managed Kubernetes Cluster should be created. Changing this forces a new resource to be created."
}
variable "resource_group_name" {
type = string
description = "(Required) Specifies the Resource Group where the Managed Kubernetes Cluster should exist. Changing this forces a new resource to be created."
}
variable "dns_prefix" {
type = string
description = "(Optional) DNS prefix specified when creating the managed cluster. Possible values must begin and end with a letter or number, contain only letters, numbers, and hyphens and be between 1 and 54 characters in length. Changing this forces a new resource to be created."
default = null
}
variable "dns_prefix_private_cluster" {
type = string
description = "(Optional) Specifies the DNS prefix to use with private clusters. Changing this forces a new resource to be created."
default = null
}
variable "automatic_channel_upgrade" {
type = string
description = "(Optional) The upgrade channel for this Kubernetes Cluster. Possible values are patch, rapid, node-image and stable. Omitting this field sets this value to none."
default = null
}
variable "azure_policy_enabled" {
type = bool
description = "(Optional) Should the Azure Policy Add-On be enabled? For more details please visit Understand Azure Policy for Azure Kubernetes Service"
default = true
}
variable "disk_encryption_set_id" {
type = string
description = "(Optional) The ID of the Disk Encryption Set which should be used for the Nodes and Volumes. More information can be found in the documentation. Changing this forces a new resource to be created."
default = null
}
variable "edge_zone" {
type = string
description = "(Optional) Specifies the Edge Zone within the Azure Region where this Managed Kubernetes Cluster should exist. Changing this forces a new resource to be created."
default = null
}
variable "http_application_routing_enabled" {
type = bool
description = "(Optional) Should HTTP Application Routing be enabled?"
default = false
}
variable "image_cleaner_enabled" {
type = bool
description = "(Optional) Specifies whether Image Cleaner is enabled"
default = false
}
variable "image_cleaner_interval_hours" {
type = number
description = " (Optional) Specifies the interval in hours when images should be cleaned up. Defaults to 48."
default = 48
}
variable "kubernetes_version" {
type = string
description = "(Optional) Version of Kubernetes specified when creating the AKS managed cluster. If not specified, the latest recommended version will be used at provisioning time (but won't auto-upgrade). AKS does not require an exact patch version to be specified, minor version aliases such as 1.22 are also supported. - The minor version's latest GA patch is automatically chosen in that case. More details can be found in the documentation."
default = null
}
variable "local_account_disabled" {
type = bool
description = "(Optional) If true local accounts will be disabled. See the documentation for more information."
default = false
}
variable "node_resource_group" {
type = string
description = "(Optional) The name of the Resource Group where the Kubernetes Nodes should exist. Changing this forces a new resource to be created."
default = null
}
variable "oidc_issuer_enabled" {
type = bool
description = "(Optional) Enable or Disable the OIDC issuer URL"
default = false
}
variable "open_service_mesh_enabled" {
type = bool
description = "(Optional) Is Open Service Mesh enabled? For more details, please visit Open Service Mesh for AKS."
default = false
}
variable "private_cluster_enabled" {
type = bool
description = "(Optional) Should this Kubernetes Cluster have its API server only exposed on internal IP addresses? This provides a Private IP Address for the Kubernetes API on the Virtual Network where the Kubernetes Cluster is located. Defaults to false. Changing this forces a new resource to be created."
default = false
}
variable "private_dns_zone_id" {
type = string
description = "(Optional) Either the ID of Private DNS Zone which should be delegated to this Cluster, System to have AKS manage this or None. In case of None you will need to bring your own DNS server and set up resolving, otherwise, the cluster will have issues after provisioning. Changing this forces a new resource to be created."
default = null
}
variable "private_cluster_public_fqdn_enabled" {
type = bool
description = "(Optional) Specifies whether a Public FQDN for this Private Cluster should be added. Defaults to false."
default = false
}
variable "workload_identity_enabled" {
type = bool
description = "(Optional) Specifies whether Azure AD Workload Identity should be enabled for the Cluster. Defaults to false."
default = false
}
variable "public_network_access_enabled" {
type = bool
description = "(Optional) Whether public network access is allowed for this Kubernetes Cluster. Defaults to true. Changing this forces a new resource to be created."
default = false
}
variable "role_based_access_control_enabled" {
type = bool
description = "(Optional) Whether Role Based Access Control for the Kubernetes Cluster should be enabled. Defaults to true. Changing this forces a new resource to be created."
default = true
}
variable "run_command_enabled" {
type = bool
description = "(Optional) Whether to enable run command for the cluster or not. Defaults to true."
default = true
}
variable "sku_tier" {
type = string
description = "(Optional) The SKU Tier that should be used for this Kubernetes Cluster. Possible values are Free, and Standard (which includes the Uptime SLA). Defaults to Free."
default = "Standard"
}
variable "default_node_pool" {
type = any
description = "(Required) A default_node_pool block"
}
variable "api_server_access_profile" {
type = any
description = "(Optional) An api_server_access_profile"
default = []
}
variable "auto_scaler_profile" {
type = any
description = "(Optional) A auto_scaler_profile block"
default = []
}
variable "azure_active_directory_role_based_access_control" {
type = any
description = "(Optional) A azure_active_directory_role_based_access_control"
default = []
}
variable "confidential_computing" {
type = any
description = "(Optional) A confidential_computing block"
default = []
}
variable "http_proxy_config" {
type = any
description = "(Optional) A http_proxy_config block"
default = []
}
variable "identity" {
type = any
description = "(Optional) An identity block as defined below. One of either identity or service_principal must be specified."
default = []
}
variable "ingress_application_gateway" {
type = any
description = "(Optional) A ingress_application_gateway"
default = []
}
variable "key_management_service" {
type = any
description = "(Optional) A key_management_service block as defined below. For more details, please visit Key Management Service (KMS) etcd encryption to an AKS cluster."
default = []
}
variable "key_vault_secrets_provider" {
type = any
description = "(Optional) A key_vault_secrets_provider block as defined below. For more details, please visit Azure Keyvault Secrets Provider for AKS."
default = []
}
variable "kubelet_identity" {
type = any
description = "(Optional) A kubelet_identity block"
default = []
}
variable "linux_profile" {
type = any
description = "(Optional) A linux_profile block"
default = []
}
variable "maintenance_window" {
type = any
description = "(Optional) A maintenance_window block"
default = []
}
variable "microsoft_defender" {
type = any
description = "(Optional) A microsoft_defender block"
default = []
}
variable "monitor_metrics" {
type = any
description = "(Optional) Specifies a Prometheus add-on profile for the Kubernetes Cluster. A monitor_metrics block as defined below."
default = []
}
variable "network_profile" {
type = any
description = " (Optional) A network_profile block as defined below. Changing this forces a new resource to be created."
default = [
{
network_plugin = "azure"
load_balancer_sku = "standard"
network_policy = "azure"
}
]
}
variable "oms_agent" {
type = any
description = "(Optional) A oms_agent block"
default = []
}
variable "service_mesh_profile" {
type = any
description = "(Optional) A service_mesh_profile block"
default = []
}
variable "workload_autoscaler_profile" {
type = any
description = "(Optional) A workload_autoscaler_profile"
default = []
}
variable "service_principal" {
type = any
description = "(Optional) A service_principal block as documented below. One of either identity or service_principal must be specified."
default = []
}
variable "aci_connector_linux" {
type = any
description = "(Optional) A aci_connector_linux block as defined below. For more details, please visit Create and configure an AKS cluster to use virtual nodes."
default = []
}
variable "tags" {
type = map(string)
description = "(Optional) A mapping of tags to assign to the resource."
default = {}
}
variable "vnet_id" {
type = string
description = "(Required) Vnet id that Aks MSI should be network contributor in a private cluster"
}
variable "additional_node_pools" {
type = any
description = "(Optional) Additional node pools"
default = {}
}