-
Notifications
You must be signed in to change notification settings - Fork 1
/
3-parallel-pipeline.yml
77 lines (76 loc) · 2.34 KB
/
3-parallel-pipeline.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
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
# Yennefer pipeline yaml
apiVersion: pipeline.1eedaegon.github.io/v1
kind: Pipeline
metadata:
name: pipeline-chain-test
spec:
schedule: # Schedule의 cron과 runAfter/runBefore가 동시에 걸리면 경고를 띄운다.
volumes:
- name: yennefer-something # 이미 있으면 생성하지 않고 사용
capacity: 2G # 최대값 # Requests: 2Gi 최소값, csi드라이버 마다 구현이 달라서 통제가 어려움
storage: standard
resource:
cpu: 200m
memory: 100Mi
tasks:
- name: pipeline-1 # import task type without image version
image: amazon/aws-cli
trigger: false
args:
- --version
- if [ -z "$SAMPLE" ]; then echo "no" else echo $SAMPLE fi
inputs: # runBefore와 inputs가 동시에 걸리고 runBefore의 task에 output이 없으면 경고를 띄운다.
- yennefer-something/input # RO
outputs:
- yennefer-something/output # RWX
runBefore: []
- name: pipeline-2-1 # import task type without image version
image: amazon/aws-cli
trigger: false
args:
- --version
- if [ -z "$SAMPLE" ]; then echo "no" else echo $SAMPLE fi
inputs:
- yennefer-something/output # RO
outputs:
- yennefer-something/pipeline-2-1-output # RWX
runBefore:
- pipeline-1
- name: pipeline-2-2 # import task type without image version
image: amazon/aws-cli
trigger: false
args:
- --version
- if [ -z "$SAMPLE" ]; then echo "no" else echo $SAMPLE fi
inputs:
- yennefer-something/output # RO
outputs:
- yennefer-something/pipeline-2-2-output # RWX
runBefore:
- pipeline-1
- name: pipeline-2-1-1 # import task type without image version
image: amazon/aws-cli
trigger: false
args:
- --version
- if [ -z "$SAMPLE" ]; then echo "no" else echo $SAMPLE fi
inputs:
- yennefer-something/pipeline-2-2-output # RO
outputs:
- yennefer-something/pipeline-2-1-1-output # RWX
runBefore:
- pipeline-2-1
- name: pipeline-3 # import task type without image version
image: amazon/aws-cli
trigger: false
args:
- --version
- if [ -z "$SAMPLE" ]; then echo "no" else echo $SAMPLE fi
inputs:
- yennefer-something/pipeline-2-1-1-output
- yennefer-something/pipeline-2-2-output
outputs:
- yennefer-something/pipeline-3-out # RWX
runBefore:
- pipeline-2-2
- pipeline-2-1-1