-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathworkflow-sample.yml
49 lines (49 loc) · 1.21 KB
/
workflow-sample.yml
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
---
apiVersion: "argoproj.io/v1alpha1"
kind: "Workflow"
metadata:
generateName: "thresholding-sample"
spec:
entrypoint: "workflow"
templates:
- name: "threshold-plugin"
inputs:
parameters:
- name: "input"
- name: "thresholdtype"
- name: "thresholdvalue"
- name: "output"
container:
image: "localhost:5000/wippthresh:0.1"
args:
- "--input"
- "{{inputs.parameters.input}}"
- "--thresholdtype"
- "{{inputs.parameters.thresholdtype}}"
- "--thresholdvalue"
- "{{inputs.parameters.thresholdvalue}}"
- "--output"
- "{{inputs.parameters.output}}"
volumeMounts:
- mountPath: "/data/"
name: "data-volume"
- name: "workflow"
dag:
tasks:
- name: "thresholding-sample-1"
template: "threshold-plugin"
arguments:
parameters:
- name: "input"
value: "/data/input"
- name: "thresholdtype"
value: "Manual"
- name: "thresholdvalue"
value: "150"
- name: "output"
value: "/data/thresholding-sample/1"
volumes:
- name: "data-volume"
hostPath:
path: "/path/to/data/"
type: "Directory"