forked from codefresh-sandbox/rollouts-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
experiment.yaml
62 lines (61 loc) · 1.67 KB
/
experiment.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
# This example demonstrates an experiment which starts two ReplicaSets with different images.
# While the experiment is running, it runs a job-based analysis, which performs HTTP benchmarking
# against each replicasets via their respective services.
apiVersion: argoproj.io/v1alpha1
kind: Experiment
metadata:
name: experiment-demo
spec:
duration: 15m
templates:
- name: purple
replicas: 2
minReadySeconds: 10
selector:
matchLabels:
app: experiment-demo
color: purple
template:
metadata:
labels:
app: experiment-demo
color: purple
spec:
containers:
- name: rollouts-demo
image: argoproj/rollouts-demo:purple
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
protocol: TCP
- name: orange
minReadySeconds: 10
replicas: 2
selector:
matchLabels:
app: experiment-demo
color: orange
template:
metadata:
labels:
app: experiment-demo
color: orange
spec:
containers:
- name: rollouts-demo
# Note that this is intentionally using a "bad" version of the image, the bad image has a
# high error rate, which will cause the experiment to fail prematurely
image: argoproj/rollouts-demo:bad-orange
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
protocol: TCP
analyses:
- name: purple
templateName: http-benchmark
args: [{name: host, value: purple}]
- name: orange
templateName: http-benchmark
args: [{name: host, value: orange}]