-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path1-simple-pipeline.yml
34 lines (33 loc) · 1.25 KB
/
1-simple-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
# Yennefer pipeline yaml
# Pipeline/Run:
# - Create/Update: Initializing|Running|Completed
# - Delete: Stopping|Deleting|Deleted
# Task/Job: pipeline의 하위에 존재한다.
# - Create: Initializing|Waiting|Running|Completed
# - Update/Delete: Initializing|Waiting|Running|Completed 새로운 pipeline을 통해 run을 만드는 개념
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-init-pipeline # import task type without image version
image: amazon/aws-cli
schedule:
scheduleDate: 1d
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/init-output # RWX