-
Notifications
You must be signed in to change notification settings - Fork 28
/
variables.tf
312 lines (269 loc) · 7.27 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
305
306
307
308
309
310
311
312
variable "ebs_csi_controller_role_name" {
description = "The name of the EBS CSI driver IAM role"
default = "ebs-csi-driver-controller"
type = string
}
variable "ebs_csi_controller_role_policy_name_prefix" {
description = "The prefix of the EBS CSI driver IAM policy"
default = "ebs-csi-driver-policy"
type = string
}
# for backwards compatibility see locals.tf
variable "ebs_csi_driver_version" {
description = "The EBS CSI driver controller's image version"
default = "v1.6.2"
type = string
}
# for backwards compatibility see locals.tf
variable "ebs_csi_controller_image" {
description = "The EBS CSI driver controller's image"
default = "registry.k8s.io/provider-aws/aws-ebs-csi-driver"
type = string
}
variable "csi_node_driver_registrar_version" {
description = "The CSI node driver registrar image version"
default = "v2.9.0"
type = string
}
variable "csi_node_driver_registrar_image" {
description = "The CSI node driver registrar image"
default = "registry.k8s.io/sig-storage/csi-node-driver-registrar"
type = string
}
variable "csi_attacher_version" {
description = "The CSI attacher image version"
default = "v3.5.1"
type = string
}
variable "csi_attacher_image" {
description = "The CSI attacher image"
default = "registry.k8s.io/sig-storage/csi-attacher"
type = string
}
variable "csi_provisioner_tag_version" {
description = "The csi provisioner tag version"
default = "v3.2.1"
type = string
}
variable "csi_provisioner_image" {
description = "The CSI provisioner image"
default = "registry.k8s.io/sig-storage/csi-provisioner"
type = string
}
variable "csi_resizer_version" {
description = "The CSI resizer image version"
default = "v1.4.0"
type = string
}
variable "csi_resizer_image" {
description = "The CSI resizer image"
default = "registry.k8s.io/sig-storage/csi-resizer"
type = string
}
variable "csi_snapshotter_version" {
description = "The CSI snapshotter image version"
default = "v6.0.1"
type = string
}
variable "csi_snapshotter_image" {
description = "The CSI snapshotter image"
default = "registry.k8s.io/sig-storage/csi-snapshotter"
type = string
}
variable "liveness_probe_version" {
description = "The liveness probe image version"
default = "v2.5.0"
type = string
}
variable "liveness_probe_image" {
description = "The liveness probes image"
default = "registry.k8s.io/sig-storage/livenessprobe"
type = string
}
variable "tags" {
description = "A map of tags to add to all resources"
default = {}
type = map(string)
}
variable "namespace" {
description = "The K8s namespace for all EBS CSI driver resources"
type = string
default = "kube-system"
}
variable "oidc_url" {
description = "EKS OIDC provider URL, to allow pod to assume role using IRSA"
type = string
}
variable "node_tolerations" {
description = "CSI driver node tolerations"
type = list(map(string))
default = []
}
variable "csi_controller_tolerations" {
description = "CSI driver controller tolerations"
type = list(map(string))
default = []
}
variable "csi_controller_replica_count" {
description = "Number of EBS CSI driver controller pods"
type = number
default = 2
}
variable "enable_volume_resizing" {
description = "Whether to enable volume resizing"
type = bool
default = false
}
variable "enable_volume_snapshot" {
description = "Whether to enable volume snapshotting"
type = bool
default = false
}
variable "extra_create_metadata" {
description = "If set, add pv/pvc metadata to plugin create requests as parameters."
type = bool
default = false
}
variable "eks_cluster_id" {
description = "ID of the Kubernetes cluster used for tagging provisioned EBS volumes"
type = string
default = ""
}
variable "extra_node_selectors" {
description = "A map of extra node selectors for all components"
default = {}
type = map(string)
}
variable "controller_extra_node_selectors" {
description = "A map of extra node selectors for controller pods"
default = {}
type = map(string)
}
variable "node_extra_node_selectors" {
description = "A map of extra node selectors for node pods"
default = {}
type = map(string)
}
variable "labels" {
description = "A map of extra labels for all resources"
default = {}
type = map(string)
}
variable "log_level" {
description = "The log level for the CSI Driver controller"
default = 5
type = number
}
variable "volume_attach_limit" {
description = "Configure maximum volume attachments per node. -1 means use default configuration"
default = -1
type = number
}
variable "additional_iam_policies_arns" {
description = "The EBS CSI driver controller's additional policies to allow more actions (kms, etc)"
default = []
type = list(string)
}
variable "enable_default_fstype" {
description = "Wheter to enable default Filesystem type"
default = false
type = bool
}
variable "default_fstype" {
description = "The default Filesystem type"
default = "ext4"
type = string
}
variable "controller_csi_attacher_resources" {
description = "The controller csi attacher resources"
default = {
requests = {}
limits = {}
}
type = object({
requests = map(string)
limits = map(string)
})
}
variable "controller_csi_provisioner_resources" {
description = "The controller csi provisioner resources"
default = {
requests = {}
limits = {}
}
type = object({
requests = map(string)
limits = map(string)
})
}
variable "controller_csi_resizer_resources" {
description = "The controller csi resizer resources"
default = {
requests = {}
limits = {}
}
type = object({
requests = map(string)
limits = map(string)
})
}
variable "controller_csi_snapshotter_resources" {
description = "The controller csi snapshotter resources"
default = {
requests = {}
limits = {}
}
type = object({
requests = map(string)
limits = map(string)
})
}
variable "arn_format" {
type = string
default = "aws"
description = "ARNs identifier, usefull for GovCloud begin with `aws-us-gov`"
}
variable "controller_ebs_plugin_resources" {
description = "The controller ebs plugin resources"
default = {
requests = {}
limits = {}
}
type = object({
requests = map(string)
limits = map(string)
})
}
variable "node_driver_registrar_resources" {
description = "The node driver registrar resources"
default = {
requests = {}
limits = {}
}
type = object({
requests = map(string)
limits = map(string)
})
}
variable "node_ebs_plugin_resources" {
description = "The node ebs plugin resources"
default = {
requests = {}
limits = {}
}
type = object({
requests = map(string)
limits = map(string)
})
}
variable "node_liveness_probe_resources" {
description = "The node liveness probe resources"
default = {
requests = {}
limits = {}
}
type = object({
requests = map(string)
limits = map(string)
})
}