Skip to content

Commit ce047cf

Browse files
committed
more update
1 parent ab0b650 commit ce047cf

7 files changed

Lines changed: 41 additions & 22 deletions

File tree

base/argo-rollout/analysis.yaml

Lines changed: 1 addition & 0 deletions
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:

base/argo-rollout/gateway.yaml

Lines changed: 7 additions & 5 deletions
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,8 @@ spec:
1516
apiVersion: gateway.networking.k8s.io/v1
1617
kind: HTTPRoute
1718
metadata:
18-
name: helloworld-http-route
19+
name: argo-rollouts-http-route
20+
namespace: default
1921
spec:
2022
parentRefs:
2123
- name: helloworld-gateway
@@ -25,9 +27,9 @@ spec:
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

base/argo-rollout/rollout.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ apiVersion: argoproj.io/v1alpha1
22
kind: Rollout
33
metadata:
44
name: helloworld
5+
namespace: default
56
spec:
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:

base/argo-rollout/service.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
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
818
spec:
919
ports:
1020
- port: 5000
1121
name: http
1222
selector:
13-
app: helloworld
23+
app: helloworld

deploy/yaml/gateway.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: networking.istio.io/v1alpha3
1+
apiVersion: gateway.networking.k8s.io/v1
22
kind: Gateway
33
metadata:
44
name: helloworld-gateway
@@ -15,7 +15,8 @@ spec:
1515
apiVersion: gateway.networking.k8s.io/v1
1616
kind: HTTPRoute
1717
metadata:
18-
name: helloworld-http-route
18+
name: argo-rollouts-http-route
19+
namespace: default
1920
spec:
2021
parentRefs:
2122
- name: helloworld-gateway
@@ -25,9 +26,9 @@ spec:
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

deploy/yaml/rollout.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: Rollout
33
metadata:
44
name: helloworld
55
spec:
6+
replicas: 1
67
revisionHistoryLimit: 2
78
selector:
89
matchLabels:
@@ -23,7 +24,8 @@ spec:
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:

deploy/yaml/service.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
name: helloworld-stable
4+
name: argo-rollouts-stable-service
5+
namespace: default
56
spec:
67
ports:
78
- port: 5000
89
name: http
910
selector:
1011
app: helloworld
11-
version: stable
1212
---
1313
apiVersion: v1
1414
kind: Service
1515
metadata:
16-
name: helloworld-canary
16+
name: argo-rollouts-canary-service
17+
namespace: default
1718
spec:
1819
ports:
1920
- port: 5000
2021
name: http
2122
selector:
2223
app: helloworld
23-
version: canary

0 commit comments

Comments
 (0)