Skip to content

Commit 9a5818a

Browse files
committed
more update
1 parent ce047cf commit 9a5818a

File tree

8 files changed

+26
-25
lines changed

8 files changed

+26
-25
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ kubectl argo rollouts set image helloworld \
2525
helloworld=docker.io/istio/examples-helloworld-v2
2626
```
2727

28-
visualize trafficshift in virtualservice
28+
Visualize trafficshift in the HTTPRoute resource
2929

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.
3131
```
32-
kubectl get virtualservice helloworld-vsvc -o yaml -w
32+
kubectl get httproute helloworld-http-route -o yaml -w
3333
```
3434

3535
## if you need to abort rollout

base/argo-rollout/gateway.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
apiVersion: gateway.networking.k8s.io/v1
1717
kind: HTTPRoute
1818
metadata:
19-
name: argo-rollouts-http-route
19+
name: helloworld-http-route
2020
namespace: default
2121
spec:
2222
parentRefs:
@@ -26,10 +26,10 @@ spec:
2626
- path:
2727
type: Exact
2828
value: /hello
29-
- backendRefs:
30-
- name: argo-rollouts-stable-service
29+
backendRefs:
30+
- name: helloworld-stable-service
3131
kind: Service
3232
port: 5000
33-
- name: argo-rollouts-canary-service
33+
- name: helloworld-canary-service
3434
kind: Service
3535
port: 5000

base/argo-rollout/rollout.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ metadata:
44
name: helloworld
55
namespace: default
66
spec:
7-
replicas: 2
87
revisionHistoryLimit: 2
98
selector:
109
matchLabels:
@@ -25,15 +24,15 @@ spec:
2524
cpu: "100m"
2625
strategy:
2726
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
3029
analysis:
3130
startingStep: 1 # index of step list, of when to start this analysis
3231
templates:
3332
- templateName: istio-success-rate
3433
args: # arguments allow AnalysisTemplates to be re-used
3534
- name: service
36-
value: helloworld
35+
value: helloworld-canary-service
3736
- name: namespace
3837
valueFrom:
3938
fieldRef:

base/argo-rollout/service.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
name: argo-rollouts-stable-service
4+
name: helloworld-stable-service
55
namespace: default
66
spec:
77
ports:
@@ -13,7 +13,7 @@ spec:
1313
apiVersion: v1
1414
kind: Service
1515
metadata:
16-
name: argo-rollouts-canary-service
16+
name: helloworld-canary-service
1717
namespace: default
1818
spec:
1919
ports:

deploy/yaml/analysis.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: argoproj.io/v1alpha1
22
kind: AnalysisTemplate
33
metadata:
44
name: istio-success-rate
5+
namespace: default
56
spec:
67
# this analysis template requires a service name and namespace to be supplied to the query
78
args:

deploy/yaml/gateway.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: gateway.networking.k8s.io/v1
22
kind: Gateway
33
metadata:
44
name: helloworld-gateway
5+
namespace: default
56
spec:
67
gatewayClassName: istio
78
listeners:
@@ -15,7 +16,7 @@ spec:
1516
apiVersion: gateway.networking.k8s.io/v1
1617
kind: HTTPRoute
1718
metadata:
18-
name: argo-rollouts-http-route
19+
name: helloworld-http-route
1920
namespace: default
2021
spec:
2122
parentRefs:
@@ -25,10 +26,10 @@ spec:
2526
- path:
2627
type: Exact
2728
value: /hello
28-
- backendRefs:
29-
- name: argo-rollouts-stable-service
29+
backendRefs:
30+
- name: helloworld-stable-service
3031
kind: Service
3132
port: 5000
32-
- name: argo-rollouts-canary-service
33+
- name: helloworld-canary-service
3334
kind: Service
34-
port: 5000
35+
port: 5000

deploy/yaml/rollout.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: argoproj.io/v1alpha1
22
kind: Rollout
33
metadata:
44
name: helloworld
5+
namespace: default
56
spec:
6-
replicas: 1
77
revisionHistoryLimit: 2
88
selector:
99
matchLabels:
@@ -16,23 +16,23 @@ spec:
1616
containers:
1717
- name: helloworld
1818
image: docker.io/istio/examples-helloworld-v1
19-
imagePullPolicy: IfNotPresent #Always
19+
imagePullPolicy: Always
2020
ports:
2121
- containerPort: 5000
2222
resources:
2323
requests:
2424
cpu: "100m"
2525
strategy:
2626
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
2929
analysis:
3030
startingStep: 1 # index of step list, of when to start this analysis
3131
templates:
3232
- templateName: istio-success-rate
3333
args: # arguments allow AnalysisTemplates to be re-used
3434
- name: service
35-
value: helloworld
35+
value: helloworld-canary-service
3636
- name: namespace
3737
valueFrom:
3838
fieldRef:

deploy/yaml/service.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
name: argo-rollouts-stable-service
4+
name: helloworld-stable-service
55
namespace: default
66
spec:
77
ports:
@@ -13,7 +13,7 @@ spec:
1313
apiVersion: v1
1414
kind: Service
1515
metadata:
16-
name: argo-rollouts-canary-service
16+
name: helloworld-canary-service
1717
namespace: default
1818
spec:
1919
ports:

0 commit comments

Comments
 (0)