@@ -18,6 +18,7 @@ locals {
18
18
spot = false
19
19
desired_capacity = " 0"
20
20
taints = " --register-with-taints=indico.io/celery=true:NoSchedule"
21
+ additional_node_labels = " "
21
22
},
22
23
static-workers = {
23
24
min_size = 1
@@ -26,6 +27,8 @@ locals {
26
27
type = " cpu"
27
28
spot = false
28
29
desired_capacity = " 0"
30
+ additional_node_labels = " "
31
+ taints = " "
29
32
},
30
33
pdf-workers = {
31
34
min_size = 0
@@ -35,6 +38,7 @@ locals {
35
38
spot = false
36
39
desired_capacity = " 1"
37
40
taints = " --register-with-taints=indico.io/pdfextraction=true:NoSchedule"
41
+ additional_node_labels = " "
38
42
},
39
43
highmem-workers = {
40
44
min_size = 0
@@ -44,6 +48,7 @@ locals {
44
48
spot = false
45
49
desired_capacity = " 0"
46
50
taints = " --register-with-taints=indico.io/highmem=true:NoSchedule"
51
+ additional_node_labels = " "
47
52
},
48
53
monitoring-workers = {
49
54
min_size = 1
@@ -53,6 +58,7 @@ locals {
53
58
spot = false
54
59
desired_capacity = " 1"
55
60
taints = " --register-with-taints=indico.io/monitoring=true:NoSchedule"
61
+ additional_node_labels = " "
56
62
},
57
63
pgo-workers = {
58
64
min_size = 1
@@ -62,6 +68,7 @@ locals {
62
68
spot = false
63
69
desired_capacity = " 1"
64
70
taints = " --register-with-taints=indico.io/crunchy=true:NoSchedule"
71
+ additional_node_labels = " "
65
72
},
66
73
readapi-servers = {
67
74
min_size = 0
@@ -71,6 +78,7 @@ locals {
71
78
spot = false
72
79
desired_capacity = " 0"
73
80
taints = " --register-with-taints=indico.io/readapi-server=true:NoSchedule"
81
+ additional_node_labels = " "
74
82
},
75
83
readapi-azurite = {
76
84
min_size = 0
@@ -80,6 +88,7 @@ locals {
80
88
spot = false
81
89
desired_capacity = " 1"
82
90
taints = " --register-with-taints=indico.io/azurite=true:NoSchedule"
91
+ additional_node_labels = " "
83
92
}
84
93
}
85
94
@@ -91,6 +100,8 @@ locals {
91
100
min_size = 1
92
101
max_size = 5
93
102
desired_capacity = " 3"
103
+ additional_node_labels = " "
104
+ taints = " "
94
105
},
95
106
pgo-workers = {
96
107
type = " cpu"
@@ -100,6 +111,7 @@ locals {
100
111
max_size = 2
101
112
desired_capacity = " 2"
102
113
taints = " --register-with-taints=indico.io/crunchy=true:NoSchedule"
114
+ additional_node_labels = " "
103
115
},
104
116
celery-workers = {
105
117
type = " cpu"
@@ -109,6 +121,7 @@ locals {
109
121
max_size = 3
110
122
desired_capacity = " 1"
111
123
taints = " --register-with-taints=indico.io/celery-workers=true:NoSchedule"
124
+ additional_node_labels = " "
112
125
},
113
126
minio = {
114
127
type = " cpu"
@@ -118,6 +131,7 @@ locals {
118
131
max_size = 4
119
132
desired_capacity = " 4"
120
133
taints = " --register-with-taints=indico.io/minio=true:NoSchedule"
134
+ additional_node_labels = " "
121
135
},
122
136
monitoring-workers = {
123
137
min_size = 1
@@ -127,6 +141,7 @@ locals {
127
141
spot = false
128
142
desired_capacity = " 1"
129
143
taints = " --register-with-taints=indico.io/monitoring=true:NoSchedule"
144
+ additional_node_labels = " "
130
145
},
131
146
weaviate = {
132
147
type = " cpu"
@@ -136,6 +151,7 @@ locals {
136
151
max_size = 3
137
152
desired_capacity = " 3"
138
153
taints = " --register-with-taints=indico.io/weaviate=true:NoSchedule"
154
+ additional_node_labels = " "
139
155
},
140
156
weaviate-workers = {
141
157
type = " cpu"
@@ -145,10 +161,31 @@ locals {
145
161
max_size = 4
146
162
desired_capacity = " 2"
147
163
taints = " --register-with-taints=indico.io/weaviate-workers=true:NoSchedule"
164
+ additional_node_labels = " "
148
165
}
149
166
}
150
167
151
- default_node_groups = merge ((var. insights_enabled ? local. insights_default_node_groups : tomap (null )), (var. ipa_enabled ? local. intake_default_node_groups : tomap (null )))
168
+ standalone_node_groups = {
169
+ default-workers = {
170
+ min_size = 1
171
+ max_size = 3
172
+ instance_types = [" m5.xlarge" ]
173
+ type = " cpu"
174
+ spot = false
175
+ desired_capacity = " 0"
176
+ additional_node_labels = " "
177
+ taints = " "
178
+ }
179
+ }
180
+
181
+ default_node_groups = (
182
+ var. ipa_enabled == false && var. insights_enabled == false
183
+ ? local. standalone_node_groups
184
+ : merge (
185
+ var. insights_enabled ? local. insights_default_node_groups : tomap (null ),
186
+ var. ipa_enabled ? local. intake_default_node_groups : tomap (null )
187
+ )
188
+ )
152
189
153
190
# This is to avoid terraform errors when the node groups variable is set,
154
191
# as different keys make the objects incompatible for a ternary function.
0 commit comments