File tree 3 files changed +10
-9
lines changed
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ spec:
34
34
key : OTEL_EXPORTER_OTLP_TRACES_HEADERS
35
35
parameters :
36
36
- name : backend.env[0].value
37
- value : 3acd921
37
+ value : 19df4c9
38
38
- name : backend.image.tag
39
- value : 3acd921
39
+ value : 19df4c9
40
40
- name : frontend.image.tag
41
- value : 3acd921
41
+ value : 19df4c9
42
42
- name : ingress.className
43
43
value : " nginx"
44
44
destination :
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ metadata:
4
4
name : success-rate
5
5
spec :
6
6
args :
7
- - name : canary
7
+ - name : ingress
8
8
- name : PROMETHEUS_AUTH_TOKEN
9
9
valueFrom :
10
10
secretKeyRef :
13
13
metrics :
14
14
- name : success-rate
15
15
interval : 10s
16
- successCondition : result[0] > 0.90
16
+ successCondition : len(result) == 0 || result[0] > 0.90
17
17
provider :
18
18
prometheus :
19
19
address : http://collector.172.20.0.5.nip.io
23
23
value : Bearer {{ args.PROMETHEUS_AUTH_TOKEN }}
24
24
query : >+
25
25
sum(
26
- rate(nginx_ingress_controller_requests{canary ="{{args.canary }}",status!~"[4-5].*"}[20s]))
26
+ rate(nginx_ingress_controller_requests{ingress ="{{args.ingress }}",status!~"[4-5].*"}[20s]))
27
27
/
28
- sum(rate(nginx_ingress_controller_requests{canary ="{{args.canary }}"}[20s])
28
+ sum(rate(nginx_ingress_controller_requests{ingress ="{{args.ingress }}"}[20s])
29
29
)
Original file line number Diff line number Diff line change 21
21
analysis :
22
22
templates :
23
23
- templateName : success-rate
24
+ startingStep : 2 # delay starting analysis run until setWeight: 15%
24
25
args :
25
- - name : canary
26
- value : playground-sandbox-backend-canary-http
26
+ - name : ingress
27
+ value : playground-sandbox
27
28
# Reference to a Service which the controller will update to point to the canary ReplicaSet
28
29
canaryService : backend-canary
29
30
# Reference to a Service which the controller will update to point to the stable ReplicaSet
You can’t perform that action at this time.
0 commit comments