-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathvalues.yaml
440 lines (439 loc) · 16 KB
/
values.yaml
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
jenkins:
controller:
image: "molgenis/jenkins"
tag: "1.1.1"
imagePullPolicy: IfNotPresent
ingress:
enabled: true
hostName: jenkins.dev.molgenis.org
jenkinsUrlProtocol: "https"
serviceType: ClusterIP
installPlugins: []
resources:
limits:
cpu: 500m
memory: 4096Mi
requests:
cpu: 500m
memory: 2000Mi
sidecars:
configAutoReload:
enabled: true
healthProbes: true
probes:
startupProbe:
timeoutSeconds: 5
periodSeconds: 10
failureThreshold: 45
JCasC:
defaultConfig: true
securityRealm: |-
oic:
clientId: "${CLIENT_ID}"
clientSecret: "${CLIENT_SECRET}"
automanualconfigure: auto
wellKnownOpenIDConfigurationUrl: "${OIDC_CONFIG_URL}"
groupsFieldName: roles
emailFieldName: email
fullNameFieldName: name
authorizationStrategy: |-
roleBased:
roles:
global:
- name: "admin"
description: "Jenkins administrators"
permissions:
- "Overall/Administer"
assignments:
- "admin"
- name: "readonly"
description: "Read-only users"
permissions:
- "Overall/Read"
- "Job/Read"
assignments:
- "reader"
configScripts:
pipelinetools: |
unclassified:
globalLibraries:
libraries:
- defaultVersion: "master"
implicit: true
name: "molgenis-jenkins-pipeline"
retriever:
modernSCM:
scm:
git:
credentialsId: "molgenis-jenkins-github-secret"
remote: "https://github.com/molgenis/molgenis-jenkins-pipeline.git"
traits:
- "gitBranchDiscovery"
slack: |-
unclassified:
slackNotifier:
botUser: false
room: "#hubot"
sendAsText: false
teamDomain: "molgenisdev"
tokenCredentialId: "molgenis-jenkins-slack-secret"
jobs: |-
jobs:
- script: >
pipelineJob('preview') {
description('Preview a molgenis PR')
parameters {
choiceParam('ACTION', ['install', 'delete', 'list'], 'What action to perform')
stringParam('TAG', 'dev', 'The docker tag to deploy')
}
authenticationToken('${PREVIEW_JOB_AUTH_TOKEN}')
definition {
cpsScm {
lightweight()
scm {
github('molgenis/molgenis-ops-helm', 'master')
scriptPath('charts/molgenis-jenkins/resources/preview/Jenkinsfile')
}
}
}
}
- script: >
organizationFolder('${GITHUB_ORG_NAME}') {
description('MOLGENIS projects in the MOLGENIS organization')
displayName('${GITHUB_ORG_NAME}')
triggers {
cron('0 0 1 2/*')
}
organizations {
github {
repoOwner('${GITHUB_ORG_NAME}')
apiUri("https://api.github.com")
credentialsId('molgenis-jenkins-github-secret')
scanCredentialsId('molgenis-jenkins-github-secret')
}
}
configure {
def traits = it / navigators / 'org.jenkinsci.plugins.github__branch__source.GitHubSCMNavigator' / traits
traits << 'jenkins.scm.impl.trait.RegexSCMSourceFilterTrait' {
regex 'molgenis.*'
}
traits << 'org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait' {
strategyId 1
}
traits << 'org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait' {
strategyId 2
}
traits << 'org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait' {
strategyId 2
trust(class: 'org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustPermission')
}
traits << 'org.jenkinsci.plugins.scm__filter.GitHubCommitSkipTrait' {}
traits << 'jenkins.plugins.git.traits.LocalBranchTrait' {
extension(class: 'hudson.plugins.git.extensions.impl.LocalBranch') {
localBranch '**'
}
}
traits << 'jenkins.plugins.git.traits.UserIdentityTrait' {
extension(class: 'hudson.plugins.git.extensions.impl.UserIdentity') {
name 'MOLGENIS Jenkins'
email '[email protected]'
}
}
}
}
- script: >
organizationFolder('other') {
description('Non-MOLGENIS projects in the MOLGENIS organization')
displayName('Other')
triggers {
cron('0 1 1 2/*')
}
organizations {
github {
repoOwner('${GITHUB_ORG_NAME}')
apiUri("https://api.github.com")
credentialsId('molgenis-jenkins-github-secret')
scanCredentialsId('molgenis-jenkins-github-secret')
}
}
configure {
def traits = it / navigators / 'org.jenkinsci.plugins.github__branch__source.GitHubSCMNavigator' / traits
traits << 'jenkins.scm.impl.trait.RegexSCMSourceFilterTrait' {
regex '^(?!molgenis)(?!NGS)(?!GAP).*'
}
traits << 'org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait' {
strategyId 1
}
traits << 'org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait' {
strategyId 2
}
traits << 'org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait' {
strategyId 2
trust(class: 'org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustPermission')
}
traits << 'org.jenkinsci.plugins.scm__filter.GitHubCommitSkipTrait' {}
traits << 'jenkins.plugins.git.traits.LocalBranchTrait' {
extension(class: 'hudson.plugins.git.extensions.impl.LocalBranch') {
localBranch '**'
}
}
traits << 'jenkins.plugins.git.traits.UserIdentityTrait' {
extension(class: 'hudson.plugins.git.extensions.impl.UserIdentity') {
name 'MOLGENIS Jenkins'
email '[email protected]'
}
}
}
}
git: |
unclassified:
gitSCM:
globalConfigEmail: "[email protected]"
globalConfigName: "MOLGENIS Jenkins"
gitHubPluginConfig:
configs:
- name: GitHub
manageHooks: false
credentialsId: "molgenis-jenkins-github-token-secret"
scriptApproval:
- "staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods replaceAll java.lang.String java.util.regex.Pattern java.lang.String"
nodeSelector:
deployPod: "true"
persistence:
mounts:
- name: controller-config
mountPath: /run/secrets/OIDC_CONFIG_URL
subPath: OIDC_CONFIG_URL
readOnly: true
- name: controller-config
mountPath: /run/secrets/CLIENT_ID
subPath: CLIENT_ID
readOnly: true
- name: controller-config
mountPath: /run/secrets/GITHUB_ORG_NAME
subPath: GITHUB_ORG_NAME
readOnly: true
- name: controller-secret
mountPath: /run/secrets/PREVIEW_JOB_AUTH_TOKEN
subPath: PREVIEW_JOB_AUTH_TOKEN
readOnly: true
- name: controller-secret
mountPath: /run/secrets/CLIENT_SECRET
subPath: CLIENT_SECRET
readOnly: true
volumes:
- name: controller-secret
secret:
secretName: controller-secret
- name: controller-config
configMap:
name: controller-config
rbac:
create: true
readSecrets: true
agent:
maxRequestsPerHostStr: "32"
podTemplates:
shared: |
- name: shared
label: shared
containers:
- name: kaniko
image: "gcr.io/kaniko-project/executor:debug-v0.7.0"
command: cat
args: ""
ttyEnabled: true
resourceRequestCpu: "250m"
resourceRequestMemory: "250Mi"
resourceLimitCpu: "1"
resourceLimitMemory: "1Gi"
- name: rancher
image: "rancher/cli2:v2.4.10"
command: cat
args: ""
ttyEnabled: true
resourceRequestCpu: "100m"
resourceRequestMemory: "250Mi"
resourceLimitCpu: "250m"
resourceLimitMemory: "500Mi"
envVars:
- envVar:
key: HOME
value: /home/jenkins/agent
- name: vault
image: "vault:1.3.1"
command: cat
args: ""
ttyEnabled: true
resourceRequestCpu: "100m"
resourceRequestMemory: "100Mi"
resourceLimitCpu: "250m"
resourceLimitMemory: "250Mi"
envVars:
- envVar:
key: VAULT_SKIP_VERIFY
value: 1
- secretEnvVar:
key: VAULT_TOKEN
secretName: molgenis-pipeline-vault-secret
secretKey: token
- secretEnvVar:
key: VAULT_ADDR
secretName: molgenis-pipeline-vault-secret
secretKey: addr
- name: sonar
image: "molgenis/sonarqube-scanner:1.0.1"
command: cat
args: ""
ttyEnabled: true
resourceRequestCpu: "500m"
resourceRequestMemory: "500Mi"
resourceLimitCpu: "2"
resourceLimitMemory: "3Gi"
envVars:
- envVar:
key: "npm_config_registry"
value: "https://registry.molgenis.org/repository/npm-central/"
- envVar:
key: LOCAL_REGISTRY
value: registry.molgenis.org
- envVar:
key: DOCKER_REGISTRY
value: registry.hub.docker.com
- envVar:
key: HELM_REPO
value: https://registry.molgenis.org/repository/helm/
- envVar:
key: HELM_REPOSITORY
value: https://helm.molgenis.org/
nodeUsageMode: NORMAL
volumes:
- hostPathVolume:
hostPath: "/var/run/docker.sock"
mountPath: "/var/run/docker.sock"
molgenis-jdk8: |
- name: molgenis-jdk8
label: molgenis-jdk8
inheritFrom: shared
nodeUsageMode: EXCLUSIVE
containers:
- name: maven
image: "molgenis/maven-jdk8:maven-jdk8-release-2019-12-24_12-50-19"
command: cat
args: ""
ttyEnabled: true
resourceRequestCpu: "250m"
resourceRequestMemory: "1Gi"
resourceLimitCpu: "1"
resourceLimitMemory: "3Gi"
envVars:
- envVar:
key: MAVEN_OPTS
value: "-Duser.home=/home/jenkins/agent"
- envVar:
key: MAVEN_CONFIG
value: "/home/jenkins/agent/.m2"
- envVar:
key: HOME
value: /home/jenkins/agent
molgenis-jdk11: |
- name: molgenis-jdk11
label: molgenis-jdk11
inheritFrom: shared
nodeUsageMode: EXCLUSIVE
containers:
- name: maven
image: "molgenis/maven-jdk11:maven-jdk11-release-2019-05-07_09-20-11"
command: cat
args: ""
ttyEnabled: true
resourceRequestCpu: "250m"
resourceRequestMemory: "1Gi"
resourceLimitCpu: "1"
resourceLimitMemory: "3Gi"
envVars:
- envVar:
key: MAVEN_OPTS
value: "-Duser.home=/home/jenkins/agent"
- envVar:
key: MAVEN_CONFIG
value: "/home/jenkins/agent/.m2"
- envVar:
key: HOME
value: /home/jenkins/agent
node-erbium: |
- name: node-erbium
label: node-erbium
nodeUsageMode: EXCLUSIVE
inheritFrom: shared
containers:
- name: node
image: "molgenis/node-erbium:1.1.1"
command: cat
args: ""
ttyEnabled: true
resourceRequestCpu: "250m"
resourceRequestMemory: "500Mi"
resourceLimitCpu: "1"
resourceLimitMemory: "2Gi"
node-fermium: |
- name: node-fermium
label: node-fermium
nodeUsageMode: EXCLUSIVE
inheritFrom: shared
containers:
- name: node
image: "molgenis/node-fermium:1.0.1"
command: cat
args: ""
ttyEnabled: true
resourceRequestCpu: "250m"
resourceRequestMemory: "500Mi"
resourceLimitCpu: "1"
resourceLimitMemory: "2Gi"
site-gen: |
- name: site-gen
label: site-gen
nodeUsageMode: EXCLUSIVE
inheritFrom: shared
containers:
- name: jekyll
image: "molgenis/jekyll:jekyll-release-2019-03-06_08-18-10"
ttyEnabled: true
command: "cat"
args: ""
resourceRequestCpu: "250m"
resourceRequestMemory: "500Mi"
resourceLimitCpu: "500m"
resourceLimitMemory: "1500Mi"
nodeSelector:
deployPod: "true"
# secret contains configuration for the kubernetes secrets that jenkins can access
secret:
githubOrg: molgenis-jenkins
openID:
clientID: "xxxx"
clientSecret: "xxxx"
configUrl: https://auth.molgenis.org/.well-known/openid-configuration
previewJob:
authToken: "ABCDE"
# Jenkins CI integration on slack, see https://molgenisdev.slack.com/services/B01C7ENKVRQ
slack: 'xxxx'
# vault configures the vault secret
vault:
token: 'xxxx'
# local vault: 'https://vault-operator.vault-operator.svc:8200'
# But for cross-cluster access use the node port:
addr: 'http://192.168.64.161:30543'
# githubToken contains access token for jenkins bot account on github.com
gitHub:
user: 'molgenis-jenkins'
token: 'xxxx'
# registry contains credentials for registry.molgenis.org
registry:
user: 'admin'
password: 'xxxx'
# dockerHubPassword contains password for hub.docker.com
dockerHub:
user: 'molgenisci'
password: 'xxxx'