-
Notifications
You must be signed in to change notification settings - Fork 5
/
values.yaml
382 lines (345 loc) · 10.8 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
# Default values for ades.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: eoepca/proc-ades
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "2.0.17"
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: ades.eoepca.com
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 2
# memory: 4Gi
# requests:
# cpu: 1
# memory: 2Gi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
clusterAdminRoleName: cluster-admin
nodeSelector: {}
tolerations: []
affinity: {}
useKubeProxy: true
workflowExecutor:
# Necessary if useKubeProxy set to false
kubeconfig: ""
# Here specify fixed inputs to all workflows execution in all stages (main, stage-in/out)
# They will be prefixed with 'ADES_'. e.g. 'APP: ades' will be 'ADES_APP: ades'
inputs:
APP: ades
#STAGEOUT_AWS_SERVICEURL: https://mys3repositoryendpoint.com
#STAGEOUT_AWS_ACCESS_KEY_ID: myAccesKeyId
#STAGEOUT_AWS_SECRET_ACCESS_KEY: mySecretAccessKey
#STAGEOUT_AWS_REGION: RegionOne
#STAGEOUT_OUTPUT: s3://processing_results
#STAGEIN_AWS_SERVICEURL: https://mys3repositoryendpoint.com
#STAGEIN_AWS_ACCESS_KEY_ID: myAccesKeyId
#STAGEIN_AWS_SECRET_ACCESS_KEY: mySecretAccessKey
main:
cwl: |
class: Workflow
$namespaces:
cwltool: http://commonwl.org/cwltool#
doc: Main stage manager
id: main
label: macro-cwl
inputs: {}
outputs: {}
hints:
"cwltool:Secrets":
secrets: []
requirements:
SubworkflowFeatureRequirement: {}
ScatterFeatureRequirement: {}
InlineJavascriptRequirement: {}
stageout:
cwl: |
cwlVersion: v1.0
baseCommand: ['/bin/bash', 'stageout.sh']
doc: "Run Stars for staging results"
class: CommandLineTool
hints:
DockerRequirement:
dockerPull: terradue/stars:2.3.1
"cwltool:Secrets":
secrets:
- ADES_STAGEOUT_AWS_SERVICEURL
- ADES_STAGEOUT_AWS_REGION
- ADES_STAGEOUT_AWS_ACCESS_KEY_ID
- ADES_STAGEOUT_AWS_SECRET_ACCESS_KEY
id: stars
arguments:
- copy
- -v
- -r
- '4'
- -o
- $( inputs.ADES_STAGEOUT_OUTPUT + "/" + inputs.process )
- -res
- $( inputs.process + ".res" )
- valueFrom: |
${
if( !Array.isArray(inputs.wf_outputs) )
{
return inputs.wf_outputs.path + "/catalog.json";
}
var args=[];
for (var i = 0; i < inputs.wf_outputs.length; i++)
{
args.push(inputs.wf_outputs[i].path + "/catalog.json");
}
return args;
}
inputs:
ADES_STAGEOUT_AWS_PROFILE:
type: string?
ADES_STAGEOUT_AWS_SERVICEURL:
type: string?
ADES_STAGEOUT_AWS_ACCESS_KEY_ID:
type: string?
ADES_STAGEOUT_AWS_SECRET_ACCESS_KEY:
type: string?
aws_profiles_location:
type: File?
ADES_STAGEOUT_OUTPUT:
type: string?
ADES_STAGEOUT_AWS_REGION:
type: string?
process:
type: string?
outputs:
s3_catalog_output:
outputBinding:
outputEval: ${ return inputs.ADES_STAGEOUT_OUTPUT + "/" + inputs.process + "/catalog.json"; }
type: string
requirements:
InitialWorkDirRequirement:
listing:
- entryname: stageout.sh
entry: |-
#!/bin/bash
export AWS__ServiceURL=$(inputs.ADES_STAGEOUT_AWS_SERVICEURL)
export AWS__Region=$(inputs.ADES_STAGEOUT_AWS_REGION)
export AWS__AuthenticationRegion=$(inputs.ADES_STAGEOUT_AWS_REGION)
export AWS_ACCESS_KEY_ID=$(inputs.ADES_STAGEOUT_AWS_ACCESS_KEY_ID)
export AWS_SECRET_ACCESS_KEY=$(inputs.ADES_STAGEOUT_AWS_SECRET_ACCESS_KEY)
Stars $@
InlineJavascriptRequirement: {}
EnvVarRequirement:
envDef:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ResourceRequirement: {}
stagein:
cwl: |
cwlVersion: v1.0
doc: "Run Stars for staging input data"
class: CommandLineTool
hints:
DockerRequirement:
dockerPull: terradue/stars:1.0.0-beta.11
"cwltool:Secrets":
secrets:
- ADES_STAGEIN_AWS_SERVICEURL
- ADES_STAGEIN_AWS_ACCESS_KEY_ID
- ADES_STAGEIN_AWS_SECRET_ACCESS_KEY
id: stars
inputs:
ADES_STAGEIN_AWS_SERVICEURL:
type: string?
ADES_STAGEIN_AWS_ACCESS_KEY_ID:
type: string?
ADES_STAGEIN_AWS_SECRET_ACCESS_KEY:
type: string?
outputs: {}
baseCommand: ['/bin/bash', 'stagein.sh']
requirements:
InitialWorkDirRequirement:
listing:
- entryname: stagein.sh
entry: |-
#!/bin/bash
export AWS__ServiceURL=$(inputs.ADES_STAGEIN_AWS_SERVICEURL)
export AWS_ACCESS_KEY_ID=$(inputs.ADES_STAGEIN_AWS_ACCESS_KEY_ID)
export AWS_SECRET_ACCESS_KEY=$(inputs.ADES_STAGEIN_AWS_SECRET_ACCESS_KEY)
url=$1
if curl --output /dev/null --silent --head --fail "$url"; then
echo "URL: $url"
else
echo "URL does not exist: $url"
exit 1
fi
Stars copy -v -rel -r 4 -o ./ --harvest $url
EnvVarRequirement:
envDef:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ResourceRequirement: {}
rulez:
cwl: |
rulez:
version: 1
parser:
type: $graph
driver: cwl
onstage:
driver: cwl
stage_in:
connection_node: node_stage_in
if_scatter:
scatterMethod: dotproduct
input:
template:
overwrite: True
on_stage:
connection_node: on_stage
stage_out:
connection_node: node_stage_out
scatter: False
if_scatter:
scatterMethod: dotproduct
follow_node: node_metrics_out
output:
driver: cwl
name: '-'
type: $graph
cwl:
GlobalInput:
Directory: string
Directory[]: string[]
OptionalInput:
Directory: string?
Directory[]: string[]?
stage_in:
Directory:
type: string
inputBinding:
position: 2
Directory[]:
type: string[]
inputBinding:
position: 2
stage_out:
Directory:
type: Directory
Directory[]:
type: Directory[]
outputBindingResult:
command:
Directory:
outputBinding:
glob: .
type: Directory
Directory[]:
outputBinding:
glob: .
type: Directory[]
stepOut:
type:
items: Directory
type: array
# kubernetes storage class to be used for provisioning volumes. Must be a persistent volume claim compliant (longhorn)
processingStorageClass: longhorn
# Size of the Kubernetes Tmp Volumes
processingVolumeTmpSize: "5Gi"
# Size of the Kubernetes Output Volumes
processingVolumeOutputSize: "10Gi"
# Max ram to use for a job
processingMaxRam: "16Gi"
# Max number of CPU cores to use concurrently for a job
processingMaxCores: "8"
# if false the Ades will clean the volume after the workflow has successfully finished running
processingKeepWorkspace: false
# if false the Ades will clean the volume after the workflow has finished with an error
processingKeepWorkspaceIfFailed: false
# processing pods node selector:
processingNodeSelector: {}
# includes terradue.docker.com docker credentials
imagePullSecrets: []
# Calrissian image tag
calrissianImage: "terradue/calrissian:0.12.0"
# some configuration values for submitted pod
pod:
env: {}
# HTTP_PROXY: http://1.2.3.4:8534
useResourceManager: false
resourceManagerEndpoint: "https://resourcemanager-api.com"
resourceManagerWorkspacePrefix: "rm-user"
# adds a label to the job namespace
jobNamespaceLabels:
app: "ades-app"
# Number of retries before considering a Job as failed
backofflimit: 3
# translate k8s error messages
# available placeholders: $namespace $steps_exit_codes
errorMessages:
"Job has reached the specified backoff limit": "Unexpected application error occurred. ( namespace: $namespace , exit codes: $steps_exit_codes )"
"namespace not found": "Job namespace $namespace does not exist or has been removed."
usernameJwtJsonPath: "pct_claims.user_name"
wps:
pepBaseUrl: "https://pep.eoepca.terradue.com"
pepClientStatePath: "/opt/zooservices_user/pepclient"
usePep: "false"
maincfgtpl: "files/main.cfg.tpl"
persistence:
enabled: true
# existingUserDataClaim:
# existingProcServicesClaim:
storageClass: longhorn
userDataAccessMode: ReadWriteOnce
userDataSize: 10Gi
procServicesAccessMode: ReadWriteOnce
procServicesSize: 5Gi
# installs longhorn storageClass using ades-longhorn chart
ades-longhorn:
enabled: true
persistence:
defaultClassReplicaCount: 1
#defaultSettings:
# systemManagedComponentsNodeSelector: "longhorn:yes"