-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathvariables.tf
445 lines (382 loc) · 10.6 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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
variable "namespace" {
type = string
description = "Namespace where Druid will be deployed"
default = "druid"
}
// Druid variables
variable "druid_image_registry" {
type = string
description = "Docker registry used to fetch the Apache Druid image"
default = "davideberdin"
}
variable "druid_image_repository" {
type = string
description = "Docker image of Apache Druid compatible for this module"
default = "apache-druid"
}
variable "druid_image_tag" {
type = string
description = "Docker image tag"
default = "0.18.1"
}
// Broker
variable "broker_replicas" {
type = number
description = "Number of replicas for the Broker service"
default = 3
}
variable "broker_requests_cpu" {
type = string
description = "amount of cpu request for each broker"
default = "512m"
}
variable "broker_requests_memory" {
type = string
description = "amount of memory request for each broker"
default = "8Gi"
}
variable "broker_limits_cpu" {
type = string
description = "amount of cpu limits for each broker"
default = "512m"
}
variable "broker_limits_memory" {
type = string
description = "amount of memory limits for each broker"
default = "8Gi"
}
variable "broker_tolerations" {
description = "toleration to apply to the deployment of the broker"
type = list(object({
effect = string
key = string
operator = string
toleration_seconds = string
value = string
}))
default = []
}
// Coordinator
variable "coordinator_replicas" {
type = number
description = "Number of replicas for the Coordinator service"
default = 1
}
variable "coordinator_requests_cpu" {
type = string
description = "amount of cpu request for each coordinator"
default = "256m"
}
variable "coordinator_requests_memory" {
type = string
description = "amount of memory request for each coordinator"
default = "2Gi"
}
variable "coordinator_limits_cpu" {
type = string
description = "amount of cpu limits for each coordinator"
default = "256m"
}
variable "coordinator_limits_memory" {
type = string
description = "amount of memory limits for each coordinator"
default = "2Gi"
}
variable "coordinator_tolerations" {
description = "toleration to apply to the deployment of the coordinator"
type = list(object({
effect = string
key = string
operator = string
toleration_seconds = string
value = string
}))
default = []
}
// Historical
variable "historical_replicas" {
type = number
description = "Number of replicas for the Historical service"
default = 1
}
variable "historical_requests_cpu" {
type = string
description = "amount of cpu request for each historical"
default = "512m"
}
variable "historical_requests_memory" {
type = string
description = "amount of memory request for each historical"
default = "8Gi"
}
variable "historical_limits_cpu" {
type = string
description = "amount of cpu limits for each historical"
default = "512m"
}
variable "historical_limits_memory" {
type = string
description = "amount of memory limits for each historical"
default = "8Gi"
}
variable "historical_tolerations" {
description = "toleration to apply to the deployment of the historical"
type = list(object({
effect = string
key = string
operator = string
toleration_seconds = string
value = string
}))
default = []
}
// Middlemanager
variable "middlemanager_replicas" {
type = number
description = "Number of replicas for the Middlemanager service"
default = 1
}
variable "middlemanager_requests_cpu" {
type = string
description = "amount of cpu request for each middlemanager"
default = "512m"
}
variable "middlemanager_requests_memory" {
type = string
description = "amount of memory request for each middlemanager"
default = "8Gi"
}
variable "middlemanager_limits_cpu" {
type = string
description = "amount of cpu limits for each middlemanager"
default = "512m"
}
variable "middlemanager_limits_memory" {
type = string
description = "amount of memory limits for each middlemanager"
default = "8Gi"
}
variable "middlemanager_tolerations" {
description = "toleration to apply to the deployment of the middlemanager"
type = list(object({
effect = string
key = string
operator = string
toleration_seconds = string
value = string
}))
default = []
}
// Overlord
variable "overlord_replicas" {
type = number
description = "Number of replicas for the Overlord service"
default = 1
}
variable "overlord_requests_cpu" {
type = string
description = "amount of cpu request for each overlord"
default = "512m"
}
variable "overlord_requests_memory" {
type = string
description = "amount of memory request for each overlord"
default = "2Gi"
}
variable "overlord_limits_cpu" {
type = string
description = "amount of cpu limits for each overlord"
default = "512m"
}
variable "overlord_limits_memory" {
type = string
description = "amount of memory limits for each overlord"
default = "2Gi"
}
variable "overlord_tolerations" {
description = "toleration to apply to the deployment of the overlord"
type = list(object({
effect = string
key = string
operator = string
toleration_seconds = string
value = string
}))
default = []
}
// Router
variable "router_replicas" {
type = number
description = "Number of replicas for the Router service"
default = 1
}
variable "router_requests_cpu" {
type = string
description = "amount of cpu request for each router"
default = "128m"
}
variable "router_requests_memory" {
type = string
description = "amount of memory request for each router"
default = "512Mi"
}
variable "router_limits_cpu" {
type = string
description = "amount of cpu limits for each router"
default = "128m"
}
variable "router_limits_memory" {
type = string
description = "amount of memory limits for each router"
default = "512Mi"
}
variable "router_tolerations" {
description = "toleration to apply to the deployment of the router"
type = list(object({
effect = string
key = string
operator = string
toleration_seconds = string
value = string
}))
default = []
}
// Druid Ingress objects
variable "enable_brokers_ingress" {
description = "enable the ingress object for the brokers for external access"
type = bool
default = false
}
variable "brokers_annotations_ingress" {
description = "list of annotations to add in the ingress object"
type = map(string)
default = {}
}
variable "brokers_host" {
description = "host to use for accessing the brokers"
type = string
default = ""
}
variable "enable_router_ingress" {
description = "enable the ingress object for the router for external access"
type = bool
default = false
}
variable "router_annotations_ingress" {
description = "list of annotations to add in the ingress object"
type = map(string)
default = {}
}
variable "router_host" {
description = "host to use for accessing the router"
type = string
default = ""
}
// Zookeeper variables
variable "create_zookeeper" {
description = "Controls if Zookeeper resources should be created (it affects almost all resources)"
type = bool
default = true
}
variable "zookeeper_namespace" {
type = string
description = "namespace where to deploy the zookeeper resource"
default = "zk-druid"
}
variable "zookeeper_host" {
type = string
description = "Zookeeper hostname for Druid"
default = "zk-cs.zk-druid.svc.cluster.local"
}
variable "zookeeper_replicas" {
type = number
description = "Number of replicas for the Zookeeper service"
default = 3
}
// Postgres variables
variable "create_postgres" {
type = bool
description = "Controls if Postgres database resources should be created (it affects almost all resources)"
default = true
}
variable "postgres_namespace" {
type = string
description = "namespace where to deploy the postgres resource"
default = "druid"
}
variable "postgres_db" {
type = string
description = "Postgress Database name for Druid"
default = "druid"
}
variable "postgres_host" {
type = string
description = "Postgress Database hostname for Druid"
default = "postgres-cs.druid.svc.cluster.local"
}
variable "postgres_port" {
type = string
description = "Postgress Database port for Druid"
default = "5432"
}
variable "postgres_user" {
type = string
description = "Postgres username for accessing the DB"
default = "druid"
}
variable "postgres_password" {
type = string
description = "Postgress Password of the user"
default = "druid"
}
// AWS variables
variable "aws_access_key" {
type = string
description = "AWS Access Key value. Permissions needed for S3"
}
variable "aws_secret_key" {
type = string
description = "AWS Secret Key value. Permissions needed for S3"
}
variable "aws_region" {
type = string
description = "AWS region"
}
variable "aws_bucket_storage" {
type = string
description = "S3 bucket for storing the segments"
}
variable "aws_bucket_index" {
type = string
description = "S3 bucket for storing the indexes"
}
variable "broker_port" {
type = string
description = "port exposed for the broker service"
default = "8082"
}
variable "overlord_port" {
type = string
description = "port exposed for the overlord service"
default = "8090"
}
variable "middlemanager_port" {
type = string
description = "port exposed for the middlemanager service"
default = "8084"
}
variable "historical_port" {
type = string
description = "port exposed for the historical service"
default = "8083"
}
variable "coordinator_port" {
type = string
description = "port exposed for the coordinator service"
default = "8081"
}
variable "router_port" {
type = string
description = "port exposed for the router service"
default = "8888"
}