screwdriver-buildcluster-queue-worker 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -209,6 +209,80 @@ executor:
|
|
|
209
209
|
retryDelay: REQUEST_RETRYDELAY
|
|
210
210
|
maxAttempts: REQUEST_MAXATTEMPTS
|
|
211
211
|
sdHabEnabled: SD_HAB_ENABLED
|
|
212
|
+
k8s-vm:
|
|
213
|
+
weightage: WEIGHT_K8S_VM
|
|
214
|
+
options:
|
|
215
|
+
# Configuration of Docker
|
|
216
|
+
kubernetes:
|
|
217
|
+
# The host or IP of the kubernetes cluster
|
|
218
|
+
host: K8S_HOST
|
|
219
|
+
# Privileged mode, default restricted, set to true for trusted container runtime use-case
|
|
220
|
+
privileged: K8S_SECURITYCONTEXT_PRIVILEGED
|
|
221
|
+
# The jwt token used for authenticating kubernetes requests
|
|
222
|
+
token: K8S_TOKEN
|
|
223
|
+
jobsNamespace: K8S_JOBS_NAMESPACE
|
|
224
|
+
baseImage: K8S_BASE_IMAGE
|
|
225
|
+
# Resources for build pod
|
|
226
|
+
resources:
|
|
227
|
+
# Number of cpu cores
|
|
228
|
+
cpu:
|
|
229
|
+
micro: K8S_CPU_MICRO
|
|
230
|
+
low: K8S_CPU_LOW
|
|
231
|
+
high: K8S_CPU_HIGH
|
|
232
|
+
turbo: K8S_CPU_TURBO
|
|
233
|
+
# upper bound for user custom cpu
|
|
234
|
+
max: K8S_CPU_MAX
|
|
235
|
+
# Memory in GB
|
|
236
|
+
memory:
|
|
237
|
+
micro: K8S_MEMORY_MICRO
|
|
238
|
+
low: K8S_MEMORY_LOW
|
|
239
|
+
high: K8S_MEMORY_HIGH
|
|
240
|
+
turbo: K8S_MEMORY_TURBO
|
|
241
|
+
# upper bound for user custom memory
|
|
242
|
+
max: K8S_MEMORY_MAX
|
|
243
|
+
disk:
|
|
244
|
+
space: K8S_DISK_LABEL
|
|
245
|
+
speed: K8S_DISK_SPEED_LABEL
|
|
246
|
+
# Default build timeout for all builds in this cluster
|
|
247
|
+
buildTimeout: K8S_VM_BUILD_TIMEOUT
|
|
248
|
+
# Default max build timeout
|
|
249
|
+
maxBuildTimeout: K8S_VM_MAX_BUILD_TIMEOUT
|
|
250
|
+
# Termination Grace period:
|
|
251
|
+
terminationGracePeriodSeconds: TERMINATION_GRACE_PERIOD_SECONDS
|
|
252
|
+
# k8s pod labels for cluster settings
|
|
253
|
+
# eg: { network-egress: 'restricted' } to execute builds where public internet access is blocked by default
|
|
254
|
+
podLabels:
|
|
255
|
+
__name: K8S_POD_LABELS
|
|
256
|
+
__format: json
|
|
257
|
+
# k8s node selectors for appropriate build pod scheduling.
|
|
258
|
+
# Value is Object of format { label: 'value' } See
|
|
259
|
+
# https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#step-one-attach-label-to-the-node
|
|
260
|
+
# Eg: { dedicated: 'screwdriver' } to schedule pods on nodes having
|
|
261
|
+
# label-value of dedicated=screwdriver
|
|
262
|
+
nodeSelectors:
|
|
263
|
+
__name: K8S_VM_NODE_SELECTORS
|
|
264
|
+
__format: json
|
|
265
|
+
# k8s preferred node selectors for build pod scheduling
|
|
266
|
+
# See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity-beta-feature
|
|
267
|
+
preferredNodeSelectors:
|
|
268
|
+
__name: K8S_VM_PREFERRED_NODE_SELECTORS
|
|
269
|
+
__format: json
|
|
270
|
+
# Launcher image to use
|
|
271
|
+
launchImage: LAUNCH_IMAGE
|
|
272
|
+
# Launcher container tag to use
|
|
273
|
+
launchVersion: LAUNCH_VERSION
|
|
274
|
+
# Prefix to the container
|
|
275
|
+
prefix: EXECUTOR_PREFIX
|
|
276
|
+
# Circuit breaker config
|
|
277
|
+
fusebox:
|
|
278
|
+
breaker:
|
|
279
|
+
# in milliseconds
|
|
280
|
+
timeout: CIRCUIT_TIMEOUT
|
|
281
|
+
requestretry:
|
|
282
|
+
# in milliseconds
|
|
283
|
+
retryDelay: REQUEST_RETRYDELAY
|
|
284
|
+
maxAttempts: REQUEST_MAXATTEMPTS
|
|
285
|
+
sdHabEnabled: SD_HAB_ENABLED
|
|
212
286
|
jenkins:
|
|
213
287
|
weightage: WEIGHT_JENKINS
|
|
214
288
|
options:
|
package/config/default.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
executor:
|
|
3
3
|
# Default executor
|
|
4
|
-
plugin: k8s
|
|
4
|
+
plugin: k8s-vm
|
|
5
5
|
k8s:
|
|
6
6
|
pluginName: k8s
|
|
7
7
|
exclusion:
|
|
@@ -137,6 +137,60 @@ executor:
|
|
|
137
137
|
retryDelay: 3000
|
|
138
138
|
maxAttempts: 5
|
|
139
139
|
sdHabEnabled: true
|
|
140
|
+
k8s-vm:
|
|
141
|
+
pluginName: k8s-vm
|
|
142
|
+
weightage: 0
|
|
143
|
+
options:
|
|
144
|
+
# Configuration of Docker
|
|
145
|
+
kubernetes:
|
|
146
|
+
# The host or IP of the kubernetes cluster
|
|
147
|
+
host: kubernetes.default
|
|
148
|
+
# Privileged mode, default restricted, set to true for trusted container runtime use-case
|
|
149
|
+
privileged: false
|
|
150
|
+
# Resources for build pod
|
|
151
|
+
resources:
|
|
152
|
+
cpu:
|
|
153
|
+
# Number of cpu cores
|
|
154
|
+
micro: 1
|
|
155
|
+
low: 2
|
|
156
|
+
high: 6
|
|
157
|
+
turbo: 12
|
|
158
|
+
# upper bound for user custom cpu
|
|
159
|
+
max: 12
|
|
160
|
+
memory:
|
|
161
|
+
# Memory in GB
|
|
162
|
+
micro: 1
|
|
163
|
+
low: 2
|
|
164
|
+
high: 12
|
|
165
|
+
turbo: 16
|
|
166
|
+
# upper bound for user custom memory
|
|
167
|
+
max: 16
|
|
168
|
+
# Default build timeout for all builds in this cluster
|
|
169
|
+
buildTimeout: 90
|
|
170
|
+
# Default max build timeout
|
|
171
|
+
maxBuildTimeout: 120
|
|
172
|
+
# Termination Grace period defaulted to 60 seconds
|
|
173
|
+
terminationGracePeriodSeconds: 60
|
|
174
|
+
# k8s pod labels for cluster settings
|
|
175
|
+
podLabels: {}
|
|
176
|
+
# k8s node selectors for appropriate pod scheduling
|
|
177
|
+
nodeSelectors: {}
|
|
178
|
+
preferredNodeSelectors: {}
|
|
179
|
+
# Launcher image to use
|
|
180
|
+
launchImage: screwdrivercd/launcher
|
|
181
|
+
# Launcher container tag to use
|
|
182
|
+
launchVersion: stable
|
|
183
|
+
# Circuit breaker config
|
|
184
|
+
fusebox:
|
|
185
|
+
breaker:
|
|
186
|
+
# in milliseconds
|
|
187
|
+
timeout: 10000
|
|
188
|
+
# requestretry configs
|
|
189
|
+
requestretry:
|
|
190
|
+
# in milliseconds
|
|
191
|
+
retryDelay: 3000
|
|
192
|
+
maxAttempts: 5
|
|
193
|
+
sdHabEnabled: true
|
|
140
194
|
# jenkins:
|
|
141
195
|
# options:
|
|
142
196
|
# # Configuration of Jenkins
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "screwdriver-buildcluster-queue-worker",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "An amqp connection manager implementation that consumes jobs from Rabbitmq queue.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"fs-extra": "^11.1.0",
|
|
51
51
|
"path": "^0.12.7",
|
|
52
52
|
"screwdriver-executor-k8s": "^16.0.0",
|
|
53
|
+
"screwdriver-executor-k8s-vm": "^5.0.0",
|
|
53
54
|
"screwdriver-executor-router": "^4.0.0",
|
|
54
55
|
"screwdriver-logger": "^2.0.0",
|
|
55
56
|
"screwdriver-request": "^2.0.1",
|