forked from idan-codefresh/canary-rollout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
canary-rollout.yaml
37 lines (37 loc) · 879 Bytes
/
canary-rollout.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
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: canary-demo
spec:
replicas: 5
revisionHistoryLimit: 1
selector:
matchLabels:
app: canary-demo
template:
metadata:
labels:
app: canary-demo
spec:
containers:
- name: canary-demo
image: philippplotnikov/rollouts-demo:red
# image: philippplotnikov/rollouts-demo:blue
#image: idanarbel/rollouts-demo:red
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
protocol: TCP
resources:
requests:
memory: 32Mi
cpu: 5m
strategy:
canary:
canaryService: canary-demo-preview
steps:
- setWeight: 20
- pause: {duration: 25}
- setWeight: 60
- pause: {duration: 25}