File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ apiVersion: argoproj.io/v1alpha1
22kind : AnalysisTemplate
33metadata :
44 name : istio-success-rate
5+ namespace : default
56spec :
67 # this analysis template requires a service name and namespace to be supplied to the query
78 args :
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ apiVersion: gateway.networking.k8s.io/v1
22kind : Gateway
33metadata :
44 name : helloworld-gateway
5+ namespace : default
56spec :
67 gatewayClassName : istio
78 listeners :
1516apiVersion : gateway.networking.k8s.io/v1
1617kind : HTTPRoute
1718metadata :
18- name : helloworld-http-route
19+ name : argo-rollouts-http-route
20+ namespace : default
1921spec :
2022 parentRefs :
2123 - name : helloworld-gateway
2527 type : Exact
2628 value : /hello
2729 - backendRefs :
28- - name : helloworld-stable
30+ - name : argo-rollouts-stable-service
31+ kind : Service
2932 port : 5000
30- weight : 100
31- - name : helloworld-canary
33+ - name : argo-rollouts-canary-service
34+ kind : Service
3235 port : 5000
33- weight : 0
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ apiVersion: argoproj.io/v1alpha1
22kind : Rollout
33metadata :
44 name : helloworld
5+ namespace : default
56spec :
7+ replicas : 2
68 revisionHistoryLimit : 2
79 selector :
810 matchLabels :
@@ -15,15 +17,16 @@ spec:
1517 containers :
1618 - name : helloworld
1719 image : docker.io/istio/examples-helloworld-v1
18- imagePullPolicy : IfNotPresent # Always
20+ imagePullPolicy : Always
1921 ports :
2022 - containerPort : 5000
2123 resources :
2224 requests :
2325 cpu : " 100m"
2426 strategy :
2527 canary :
26- # analysis will be performed in background, while rollout is progressing through its steps
28+ canaryService : argo-rollouts-canary-service # our created canary service
29+ stableService : argo-rollouts-stable-service # our created stable service
2730 analysis :
2831 startingStep : 1 # index of step list, of when to start this analysis
2932 templates :
Original file line number Diff line number Diff line change 11apiVersion : v1
22kind : Service
33metadata :
4- name : helloworld
5- labels :
4+ name : argo-rollouts-stable-service
5+ namespace : default
6+ spec :
7+ ports :
8+ - port : 5000
9+ name : http
10+ selector :
611 app : helloworld
7- service : helloworld
12+ ---
13+ apiVersion : v1
14+ kind : Service
15+ metadata :
16+ name : argo-rollouts-canary-service
17+ namespace : default
818spec :
919 ports :
1020 - port : 5000
1121 name : http
1222 selector :
13- app : helloworld
23+ app : helloworld
Original file line number Diff line number Diff line change 1- apiVersion : networking.istio .io/v1alpha3
1+ apiVersion : gateway. networking.k8s .io/v1
22kind : Gateway
33metadata :
44 name : helloworld-gateway
1515apiVersion : gateway.networking.k8s.io/v1
1616kind : HTTPRoute
1717metadata :
18- name : helloworld-http-route
18+ name : argo-rollouts-http-route
19+ namespace : default
1920spec :
2021 parentRefs :
2122 - name : helloworld-gateway
2526 type : Exact
2627 value : /hello
2728 - backendRefs :
28- - name : helloworld-stable
29+ - name : argo-rollouts-stable-service
30+ kind : Service
2931 port : 5000
30- weight : 100
31- - name : helloworld-canary
32+ - name : argo-rollouts-canary-service
33+ kind : Service
3234 port : 5000
33- weight : 0
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ kind: Rollout
33metadata :
44 name : helloworld
55spec :
6+ replicas : 1
67 revisionHistoryLimit : 2
78 selector :
89 matchLabels :
2324 cpu : " 100m"
2425 strategy :
2526 canary :
26- # analysis will be performed in background, while rollout is progressing through its steps
27+ canaryService : argo-rollouts-canary-service # our created canary service
28+ stableService : argo-rollouts-stable-service # our created stable service
2729 analysis :
2830 startingStep : 1 # index of step list, of when to start this analysis
2931 templates :
Original file line number Diff line number Diff line change 11apiVersion : v1
22kind : Service
33metadata :
4- name : helloworld-stable
4+ name : argo-rollouts-stable-service
5+ namespace : default
56spec :
67 ports :
78 - port : 5000
89 name : http
910 selector :
1011 app : helloworld
11- version : stable
1212---
1313apiVersion : v1
1414kind : Service
1515metadata :
16- name : helloworld-canary
16+ name : argo-rollouts-canary-service
17+ namespace : default
1718spec :
1819 ports :
1920 - port : 5000
2021 name : http
2122 selector :
2223 app : helloworld
23- version : canary
You can’t perform that action at this time.
0 commit comments