This commit is contained in:
2024-12-04 02:52:22 +00:00
parent 5eedfe81f0
commit 21b3a988dc
7 changed files with 118 additions and 0 deletions

35
base/rollout.yaml Normal file
View File

@ -0,0 +1,35 @@
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: rollouts-demo
spec:
replicas: 1
strategy:
canary:
canaryService: rollouts-demo-canary
stableService: rollouts-demo-stable
trafficRouting:
istio:
virtualServices:
- name: rollouts-demo-vsvc1
routes:
- primary
steps:
- setWeight: 5
- pause: {}
revisionHistoryLimit: 2
selector:
matchLabels:
app: rollouts-demo
template:
metadata:
labels:
app: rollouts-demo
istio-injection: enabled
spec:
containers:
- name: rollouts-demo
image: harbor.inje-private.com/open/nginx:a
ports:
- name: http
containerPort: 80