-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
247 lines (179 loc) · 5.47 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
variable "prefix" {
description = "Prefix for Azure resources"
}
variable "location" {
description = "Azure region to deploy Azure resources"
}
variable "tags" {
type = map(string)
description = "Tags attached to Azure resource"
default = {}
}
variable "resource_owners" {
type = list(string)
description = "List of principal IDs (either Users, Groups or ServiceAccounts) which will have \"Owner\" permissions on the resource group"
default = []
}
### Networking
variable "cluster_private_cluster" {
type = bool
description = "Deploy a cluster with a private control plane"
default = true
}
variable "cluster_private_dns_zone_id" {
description = "Private DNS Zone ID for the cluster"
default = null
}
variable "cluster_subnet_id" {
description = "Subnet ID to join cluster nodes"
}
variable "cluster_docker_bridge_cidr" {
description = "IP range to be used by the docker bridge"
default = "172.17.0.1/16"
}
variable "cluster_service_cidr" {
description = "IP range to be used by the docker bridge"
default = "10.0.0.0/16"
}
variable "cluster_dns_service_ip" {
description = "IP assigned to the cluster DNS service"
default = "10.0.0.10"
}
variable "infrastructure_pipeline_subnet_ids" {
type = list(string)
description = "Subnet ID of infrastructure pipeline"
default = []
}
variable "infrastructure_pipeline_allowed_ip_ranges" {
type = list(string)
description = "Additional allowed IP ranges for infrastructure pipelines"
default = []
}
### Cluster
variable "cluster_sku_tier" {
description = "SKU Tier for the cluster (\"Standard\" is preferred)"
default = "Standard"
}
variable "cluster_authorized_ip_ranges" {
type = list(string)
description = "Authorized IP ranges for connecting to the cluster control plane"
default = null
}
variable "cluster_ssh_key" {
description = "SSH public key to access cluster nodes"
sensitive = true
}
variable "availability_zones" {
type = list(string)
description = "List of availability zones used by the cluster"
default = []
}
variable "storage_profile" {
type = object({
blob_driver_enabled = bool
disk_driver_enabled = bool
disk_driver_version = string
file_driver_enabled = bool
snapshot_controller_enabled = bool
})
description = "The Storage Profile object to be used for the AKS Cluster"
default = {
blob_driver_enabled = false
disk_driver_enabled = true
disk_driver_version = "v1"
file_driver_enabled = true
snapshot_controller_enabled = true
}
}
### SYSTEM NODE POOL
variable "system_node_pool_kubernetes_version" {
description = "Kubernetes version for the system node pool"
default = null
}
variable "system_node_pool_vm_size" {
description = "VM size used by the system node pool"
default = "Standard_D16s_v3"
}
variable "system_node_pool_node_count" {
description = "Number of nodes in the system node pool"
default = 3
}
variable "system_node_pool_enable_auto_scaling" {
type = bool
description = "Enable auto scaling of the system node pool"
default = false
}
variable "system_node_pool_auto_scaling_min_nodes" {
type = number
description = "Minimum number of nodes in the system node pool, when auto scaling is enabled"
default = 3
}
variable "system_node_pool_auto_scaling_max_nodes" {
type = number
description = "Maximum number of nodes in the system node pool, when auto scaling is enabled"
default = 5
}
variable "system_node_pool_max_pods" {
description = "Maximum number of pods per node in the system node pool"
default = 60
}
### GENERAL NODE POOL
variable "general_node_pool_kubernetes_version" {
description = "Kubernetes version for the general node pool"
default = null
}
variable "general_node_pool_vm_size" {
description = "VM size used by the general node pool"
default = "Standard_D16s_v3"
}
variable "general_node_pool_node_count" {
description = "Number of nodes in the general node pool"
default = 3
}
variable "general_node_pool_enable_auto_scaling" {
type = bool
description = "Enable auto scaling of the general node pool"
default = false
}
variable "general_node_pool_auto_scaling_min_nodes" {
type = number
description = "Minimum number of nodes in the general node pool, when auto scaling is enabled"
default = 0
}
variable "general_node_pool_auto_scaling_max_nodes" {
type = number
description = " Maximum number of nodes in the general node pool, when auto scaling is enabled"
default = 3
}
variable "general_node_pool_labels" {
type = map(string)
description = "Labels applied to the nodes in the general node pool "
default = {}
}
variable "general_node_pool_taints" {
type = list(string)
description = "Taints applied to nodes in the general node pool"
default = []
}
variable "general_node_pool_max_pods" {
description = "Maximum number of pods per node in the general node pool"
default = 60
}
variable "network_policy" {
description = "Network policy provider to use"
default = "azure"
}
variable "kubernetes_version" {
description = "Version of Kubernetes to use"
}
# RBAC
variable "cluster_users" {
type = list(string)
description = "List of users/groups who can pull the kubeconfig"
default = []
}
variable "cluster_admins" {
type = list(string)
description = "List of users/groups who can pull the admin kubeconfig"
default = []
}