-
Notifications
You must be signed in to change notification settings - Fork 18
/
rollout.yaml
52 lines (52 loc) · 1.35 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: issuegentest
spec:
replicas: 4
revisionHistoryLimit: 2
selector:
matchLabels:
app: issuegentest
template:
metadata:
annotations:
prometheus.io/scrape: 'true'
prometheus_io_path: '/mgmt/prometheus'
prometheus_io_port: '8088'
labels:
app: issuegentest
spec:
containers:
- name: rollouts-baseline
image: docker.io/opsmxdev/issuegen:v3.0.8
imagePullPolicy: Always
ports:
- containerPort: 8088
strategy:
canary:
steps:
- setWeight: 25
- pause: { duration: 30s }
- analysis:
templates:
- templateName: sj-analysis
args:
- name: canary-hash
valueFrom:
podTemplateHashValue: Latest
- name: baseline-hash
valueFrom:
podTemplateHashValue: Stable
- setWeight: 50
- pause: { duration: 30s }
- analysis:
templates:
- templateName: sj-analysis
args:
- name: canary-hash
valueFrom:
podTemplateHashValue: Latest
- name: baseline-hash
valueFrom:
podTemplateHashValue: Stable