-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
260 lines (260 loc) · 9.36 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
variable "ocean_vng_name" {
type = string
description = "Enter a name for the virtual node group."
}
variable "ocean_id" {
type = string
description = "Ocean cluster identifier."
}
## autoscale_headrooms ##
variable "autoscale_headrooms_num_of_units" {
type = number
default = null
description = "The number of units to retain as headroom, where each unit has the defined headroom CPU and memory."
}
variable "autoscale_headrooms_cpu_per_unit" {
type = number
default = null
description = "Configure the number of CPUs to allocate the headroom. CPUs are denoted in millicores, where 1000 millicores = 1 vCPU."
}
variable "autoscale_headrooms_gpu_per_unit" {
type = number
default = null
description = "Amount of GPU to allocate for headroom unit."
}
variable "autoscale_headrooms_memory_per_unit" {
type = number
default = null
description = "Configure the amount of memory (MiB) to allocate the headroom."
}
variable "max_pods_per_node" {
type = number
default = null
description = "The maximum number of pods per node in an AKS cluster."
}
variable "enable_node_public_ip" {
type = bool
default = null
description = "Enable node public IP."
}
variable "os_disk_size_gb" {
type = number
default = null
description = "The size of the OS disk in GB."
}
variable "os_disk_type" {
type = string
default = null
description = "The type of the OS disk."
}
variable "os_type" {
type = string
default = null
description = "The os type of the os disk."
}
variable "os_sku" {
type = string
default = null
description = "The OS SKU of the OS type. Must correlate with the os type."
}
variable "kubernetes_version" {
type = string
default = null
description = "The desired Kubernetes version of the launched nodes. In case the value is null, the Kubernetes version of the control plane is used."
}
variable "pod_subnet_ids" {
type = list(string)
default = null
description = "The IDs of subnets in an existing VNet into which to assign pods in the cluster (requires azure network-plugin)."
}
variable "vnet_subnet_ids" {
type = list(string)
default = null
description = "The IDs of subnets in an existing VNet into which to assign nodes in the cluster (requires azure network-plugin)."
}
variable "node_min_count" {
type = number
default = null
description = "Minimum node count limit."
}
variable "node_max_count" {
type = number
default = null
description = "Maximum node count limit."
}
variable "spot_percentage" {
type = number
default = 100
description = "Percentage of spot VMs to maintain."
}
variable "fallback_to_ondemand" {
type = bool
default = true
description = "If no spot instance markets are available, enable Ocean to launch on-demand instances instead."
}
variable "taints" {
type = list(object({
key = string
value = string
effect = string
}))
default = null
description = "Add taints to a virtual node group"
}
variable "tags" {
type = map(string)
default = null
description = "A maximum of 10 unique key-value pairs for VM tags in the virtual node group."
}
variable "labels" {
type = map(string)
default = null
description = "An array of labels to add to the virtual node group. Only custom user labels are allowed, and not Kubernetes built-in labels or Spot internal labels."
}
variable "availability_zones" {
type = list(string)
default = null
description = "An Array holding Availability Zones, this configures the availability zones the Ocean may launch instances in per VNG."
}
variable "vmsizes_filters_min_vcpu" {
type = number
default = null
description = "Minimum number of vcpus available."
}
variable "vmsizes_filters_max_vcpu" {
type = number
default = null
description = "Maximum number of vcpus available."
}
variable "vmsizes_filters_min_memory_gib" {
type = number
default = null
description = "Minimum amount of Memory (GiB)."
}
variable "vmsizes_filters_max_memory_gib" {
type = number
default = null
description = "Maximum amount of Memory (GiB)."
}
variable "vmsizes_filters_architectures" {
type = list(string)
default = null
description = "The filtered vm sizes will support at least one of the architectures from this list. x86_64 includes both intel64 and amd64."
}
variable "vmsizes_filters_series" {
type = list(string)
default = null
description = "Vm sizes belonging to a series from the list will be available for scaling."
}
variable "vmsizes_filters_exclude_series" {
type = list(string)
default = null
description = "Vm sizes belonging to a series from the list will not be available for scaling."
}
variable "vmsizes_filters_accelerated_networking" {
type = string
default = null
description = "In case acceleratedNetworking is set to Enabled, accelerated networking applies only to the VM that enables it."
}
variable "vmsizes_filters_disk_performance" {
type = string
default = null
description = "The filtered vm sizes will support at least one of the classes from this list."
}
variable "vmsizes_filters_min_gpu" {
type = number
default = null
description = "Minimum number of GPUs available."
}
variable "vmsizes_filters_max_gpu" {
type = number
default = null
description = "Maximum number of GPUs available."
}
variable "vmsizes_filters_min_nics" {
type = number
default = null
description = "Minimum number of network interfaces."
}
variable "vmsizes_filters_min_disk" {
type = number
default = null
description = "Minimum number of data disks available."
}
variable "vmsizes_filters_vm_types" {
type = list(string)
default = null
description = "The filtered vm types will belong to one of the vm types from this list."
}
variable "vmsizes_filters_gpu_types" {
type = list(string)
default = null
description = "The filtered gpu types will belong to one of the gpu types from this list. Supported GPU Types: `nvidia-tesla-v100`, `amd-radeon-instinct-mi25`, `nvidia-a10`, `nvidia-tesla-a100`, `nvidia-tesla-k80`, `nvidia-tesla-m60`, `nvidia-tesla-p100`, `nvidia-tesla-p40`, `nvidia-tesla-t4`, `nvidia-tesla-h100`."
}
## Update Policy - update_policy ##
variable "should_roll" {
type = bool
default = false
description = "Should the cluster be rolled for configuration updates"
}
## roll_config ##
variable "conditioned_roll" {
type = bool
default = false
description = "Default: false. Spot will perform a cluster Roll in accordance with a relevant modification of the cluster’s settings. When set to true , only specific changes in the cluster’s configuration will trigger a cluster roll (such as availability_zones, max_pods_per_node, enable_node_public_ip, os_disk_size_gb, os_disk_type, os_sku, kubernetes_version, vnet_subnet_ids, pod_subnet_ids, labels, taints, tags)."
}
variable "respect_pdb" {
type = bool
default = true
description = "Default: true. During the roll, if the parameter is set to true we honor PDB during the nodes replacement."
}
variable "batch_size_percentage" {
type = number
default = 20
description = "Value as a percent to set the size of a batch in a roll. Valid values are 0-100. In case of null as value, the default value in the backend will be 20%."
}
variable "vng_ids" {
type = list(string)
default = null
description = "List of virtual node group identifiers to be rolled. Each identifier is a string. vngIds can be null, and cannot be used together with nodeNames and nodePoolNames."
}
variable "batch_min_healthy_percentage" {
type = number
default = 50
description = "Default: 50. Indicates the threshold of minimum healthy nodes in single batch. If the amount of healthy nodes in single batch is under the threshold, the roll will fail. If exists, the parameter value will be in range of 1-100. In case of null as value, the default value in the backend will be 50%. Value of param should represent the number in percentage (%) of the batch."
}
variable "comment" {
type = string
default = null
description = "Add a comment description for the roll. The comment is limited to 256 chars and optional."
}
variable "node_pool_names" {
type = list(string)
default = null
description = "List of node pools to be rolled. Each node pool name is a string. nodePoolNames can be null, and cannot be used together with nodeNames and vngIds."
}
variable "respect_restrict_scale_down" {
type = bool
default = false
description = "Default: false. During the roll, if the parameter is set to true we honor Restrict Scale Down label during the nodes replacement."
}
variable "node_names" {
type = list(string)
default = null
description = "List of node names to be rolled. Each identifier is a string. nodeNames can be null, and cannot be used together with nodePoolNames and vngIds."
}
variable "linux_os_config" {
type = object({
vm_max_map_count = optional(number,null)
})
default = null
}
# scheduling
variable "shutdown_hours" {
type = object({
is_enabled = bool
time_windows = list(string)
})
default = null
description = "shutdown_hours object"
}