-
Notifications
You must be signed in to change notification settings - Fork 15
/
argo.yaml
32 lines (32 loc) · 858 Bytes
/
argo.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
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: automation-test-
spec:
# entrypoint is the name of the template used as the starting point of the workflow
entrypoint: automation-test
templates:
- name: automation-test
steps:
- - name: verify
template: verify
- - name: stress
template: stress
- name: verify
container:
image: ymian/busybox
command: [sh, -c]
args: ["
x=`curl http://webdemo.default.svc.cluster.local:3000/stress/3 -w '%{size_download}' -so /dev/null`;
if [ $x -eq '3072' ];
then
exit 0;
else
echo x=$x;
exit 1;
fi
"]
- name: stress
container:
image: ymian/wrk
command: [./wrk, -t8, -c500, -d2m, --latency, http://webdemo.default.svc.cluster.local:3000/stress/3]