forked from argoproj/rollouts-demo
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrollout-with-analysis.yaml
More file actions
44 lines (44 loc) · 899 Bytes
/
rollout-with-analysis.yaml
File metadata and controls
44 lines (44 loc) · 899 Bytes
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
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: canary-demo
spec:
replicas: 5
revisionHistoryLimit: 1
selector:
matchLabels:
app: canary-demo
strategy:
canary:
analysis:
templateName: success-rate
args:
- name: ingress
value: canary-demo
canaryService: canary-demo-preview
steps:
- setWeight: 40
- pause: {}
- setWeight: 60
- pause:
duration: 10
- setWeight: 80
- pause:
duration: 10
template:
metadata:
labels:
app: canary-demo
spec:
containers:
- image: argoproj/rollouts-demo:blue
imagePullPolicy: Always
name: canary-demo
ports:
- containerPort: 8080
name: http
protocol: TCP
resources:
requests:
cpu: 5m
memory: 32Mi