Skip to content

Commit 2316160

Browse files
author
student
committed
add rollout.yaml
1 parent 369016a commit 2316160

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

manifests/rollout.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Rollout
3+
metadata:
4+
name: go-simple-webserver
5+
labels:
6+
app: go-simple-webserver
7+
spec:
8+
replicas: 10
9+
strategy:
10+
canary:
11+
steps:
12+
- setWeight: 50
13+
- pause: { duration: 60s }
14+
- setWeight: 100
15+
selector:
16+
matchLabels:
17+
app: go-simple-webserver
18+
template:
19+
metadata:
20+
labels:
21+
app: go-simple-webserver
22+
spec:
23+
containers:
24+
- name: webserver
25+
image: ghcr.io/odefta/ci_cd_lab:latest
26+
ports:
27+
- containerPort: 8080
28+
imagePullPolicy: Always

0 commit comments

Comments
 (0)