forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
many-massive-workflows.yaml
62 lines (62 loc) · 1.59 KB
/
many-massive-workflows.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
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: many-massive-workflows
labels:
stress: "true"
spec:
entrypoint: main
podGC:
strategy: OnPodCompletion
arguments:
parameters:
- name: "x"
value: 1
- name: "y"
value: 1
workflowMetadata:
labels:
stress: "true"
templates:
- name: main
dag:
tasks:
- name: create-workflow
template: create-workflow
arguments:
parameters:
- name: i
value: "{{item}}"
withSequence:
count: "{{workflow.parameters.x}}"
- name: create-workflow
inputs:
parameters:
- name: i
resource:
action: create
setOwnerReference: true
manifest: |
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: "large-workflow-{{workflow.parameters.x}}x{{workflow.parameters.y}}-{{inputs.parameters.i}}"
labels:
stress: "true"
spec:
entrypoint: main
podGC:
strategy: OnPodCompletion
ttlStrategy:
secondsAfterCompletion: 60
templates:
- name: main
dag:
tasks:
- name: create-pod
template: create-pod
withSequence:
count: "{{workflow.parameters.y}}"
- name: create-pod
container:
image: argoproj/argosay:v2