File tree 8 files changed +26
-25
lines changed
8 files changed +26
-25
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ kubectl argo rollouts set image helloworld \
25
25
helloworld=docker.io/istio/examples-helloworld-v2
26
26
```
27
27
28
- visualize trafficshift in virtualservice
28
+ Visualize trafficshift in the HTTPRoute resource
29
29
30
- in another tab you can watch your virtualservice to observe traffic shifting. You should see the weights shift from 100% stable incrementally to 100% canary, and then result in setting the canary to the stable tag once complete.
30
+ in another tab you can watch your HTTPRoute to observe traffic shifting. You should see the weights shift from 100% stable incrementally to 100% canary, and then result in setting the canary to the stable tag once complete.
31
31
```
32
- kubectl get virtualservice helloworld-vsvc -o yaml -w
32
+ kubectl get httproute helloworld-http-route -o yaml -w
33
33
```
34
34
35
35
## if you need to abort rollout
Original file line number Diff line number Diff line change 16
16
apiVersion : gateway.networking.k8s.io/v1
17
17
kind : HTTPRoute
18
18
metadata :
19
- name : argo-rollouts -http-route
19
+ name : helloworld -http-route
20
20
namespace : default
21
21
spec :
22
22
parentRefs :
@@ -26,10 +26,10 @@ spec:
26
26
- path :
27
27
type : Exact
28
28
value : /hello
29
- - backendRefs :
30
- - name : argo-rollouts -stable-service
29
+ backendRefs :
30
+ - name : helloworld -stable-service
31
31
kind : Service
32
32
port : 5000
33
- - name : argo-rollouts -canary-service
33
+ - name : helloworld -canary-service
34
34
kind : Service
35
35
port : 5000
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ metadata:
4
4
name : helloworld
5
5
namespace : default
6
6
spec :
7
- replicas : 2
8
7
revisionHistoryLimit : 2
9
8
selector :
10
9
matchLabels :
@@ -25,15 +24,15 @@ spec:
25
24
cpu : " 100m"
26
25
strategy :
27
26
canary :
28
- canaryService : argo-rollouts -canary-service # our created canary service
29
- stableService : argo-rollouts -stable-service # our created stable service
27
+ canaryService : helloworld -canary-service # our created canary service
28
+ stableService : helloworld -stable-service # our created stable service
30
29
analysis :
31
30
startingStep : 1 # index of step list, of when to start this analysis
32
31
templates :
33
32
- templateName : istio-success-rate
34
33
args : # arguments allow AnalysisTemplates to be re-used
35
34
- name : service
36
- value : helloworld
35
+ value : helloworld-canary-service
37
36
- name : namespace
38
37
valueFrom :
39
38
fieldRef :
Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
2
kind : Service
3
3
metadata :
4
- name : argo-rollouts -stable-service
4
+ name : helloworld -stable-service
5
5
namespace : default
6
6
spec :
7
7
ports :
13
13
apiVersion : v1
14
14
kind : Service
15
15
metadata :
16
- name : argo-rollouts -canary-service
16
+ name : helloworld -canary-service
17
17
namespace : default
18
18
spec :
19
19
ports :
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ apiVersion: argoproj.io/v1alpha1
2
2
kind : AnalysisTemplate
3
3
metadata :
4
4
name : istio-success-rate
5
+ namespace : default
5
6
spec :
6
7
# this analysis template requires a service name and namespace to be supplied to the query
7
8
args :
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ apiVersion: gateway.networking.k8s.io/v1
2
2
kind : Gateway
3
3
metadata :
4
4
name : helloworld-gateway
5
+ namespace : default
5
6
spec :
6
7
gatewayClassName : istio
7
8
listeners :
15
16
apiVersion : gateway.networking.k8s.io/v1
16
17
kind : HTTPRoute
17
18
metadata :
18
- name : argo-rollouts -http-route
19
+ name : helloworld -http-route
19
20
namespace : default
20
21
spec :
21
22
parentRefs :
@@ -25,10 +26,10 @@ spec:
25
26
- path :
26
27
type : Exact
27
28
value : /hello
28
- - backendRefs :
29
- - name : argo-rollouts -stable-service
29
+ backendRefs :
30
+ - name : helloworld -stable-service
30
31
kind : Service
31
32
port : 5000
32
- - name : argo-rollouts -canary-service
33
+ - name : helloworld -canary-service
33
34
kind : Service
34
- port : 5000
35
+ port : 5000
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ apiVersion: argoproj.io/v1alpha1
2
2
kind : Rollout
3
3
metadata :
4
4
name : helloworld
5
+ namespace : default
5
6
spec :
6
- replicas : 1
7
7
revisionHistoryLimit : 2
8
8
selector :
9
9
matchLabels :
@@ -16,23 +16,23 @@ spec:
16
16
containers :
17
17
- name : helloworld
18
18
image : docker.io/istio/examples-helloworld-v1
19
- imagePullPolicy : IfNotPresent # Always
19
+ imagePullPolicy : Always
20
20
ports :
21
21
- containerPort : 5000
22
22
resources :
23
23
requests :
24
24
cpu : " 100m"
25
25
strategy :
26
26
canary :
27
- canaryService : argo-rollouts -canary-service # our created canary service
28
- stableService : argo-rollouts -stable-service # our created stable service
27
+ canaryService : helloworld -canary-service # our created canary service
28
+ stableService : helloworld -stable-service # our created stable service
29
29
analysis :
30
30
startingStep : 1 # index of step list, of when to start this analysis
31
31
templates :
32
32
- templateName : istio-success-rate
33
33
args : # arguments allow AnalysisTemplates to be re-used
34
34
- name : service
35
- value : helloworld
35
+ value : helloworld-canary-service
36
36
- name : namespace
37
37
valueFrom :
38
38
fieldRef :
Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
2
kind : Service
3
3
metadata :
4
- name : argo-rollouts -stable-service
4
+ name : helloworld -stable-service
5
5
namespace : default
6
6
spec :
7
7
ports :
13
13
apiVersion : v1
14
14
kind : Service
15
15
metadata :
16
- name : argo-rollouts -canary-service
16
+ name : helloworld -canary-service
17
17
namespace : default
18
18
spec :
19
19
ports :
You can’t perform that action at this time.
0 commit comments