File tree 2 files changed +32
-9
lines changed
2 files changed +32
-9
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : kustomize.config.k8s.io/v1beta1
2
2
kind : Kustomization
3
3
4
- bases :
5
- - ../canary/
6
-
7
4
resources :
8
- - analysis-success-rate.yaml
9
-
10
- patchesStrategicMerge :
11
5
- rollout-with-analysis.yaml
12
-
6
+ - analysis-success-rate.yaml
7
+ - ../canary/canary-service.yaml
8
+ - ../canary/canary-ingress.yaml
9
+ - ../canary/canary-preview-service.yaml
10
+ - ../canary/canary-preview-ingress.yaml
Original file line number Diff line number Diff line change @@ -3,15 +3,40 @@ kind: Rollout
3
3
metadata :
4
4
name : canary-demo
5
5
spec :
6
+ replicas : 5
7
+ revisionHistoryLimit : 3
8
+ selector :
9
+ matchLabels :
10
+ app : canary-demo
6
11
strategy :
7
12
canary :
8
13
analysis :
9
14
name : success-rate
10
15
templateName : success-rate
16
+ canaryService : canary-demo-preview
11
17
steps :
12
18
- setWeight : 40
13
19
- pause : {}
14
20
- setWeight : 60
15
- - pause : {duration: 10}
21
+ - pause :
22
+ duration : 10
16
23
- setWeight : 80
17
- - pause : {duration: 10}
24
+ - pause :
25
+ duration : 10
26
+ template :
27
+ metadata :
28
+ labels :
29
+ app : canary-demo
30
+ spec :
31
+ containers :
32
+ - image : argoproj/rollouts-demo:blue
33
+ imagePullPolicy : Always
34
+ name : canary-demo
35
+ ports :
36
+ - containerPort : 8080
37
+ name : http
38
+ protocol : TCP
39
+ resources :
40
+ requests :
41
+ cpu : 5m
42
+ memory : 32Mi
You can’t perform that action at this time.
0 commit comments