Skip to content

Commit fa78eca

Browse files
added guestbook-rollout
1 parent 0fb5b9f commit fa78eca

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Rollout
3+
metadata:
4+
name: guestbook-ui-rollout
5+
spec:
6+
replicas: 2
7+
strategy:
8+
canary:
9+
steps:
10+
- setWeight: 50
11+
- pause: {duration: 10}
12+
revisionHistoryLimit: 2
13+
selector:
14+
matchLabels:
15+
app: guestbook-ui
16+
template:
17+
metadata:
18+
labels:
19+
app: guestbook-ui
20+
spec:
21+
containers:
22+
- name: guestbook-ui
23+
image: gcr.io/heptio-images/ks-guestbook-demo:0.1
24+
ports:
25+
- name: http
26+
containerPort: 8080
27+
protocol: TCP
28+
resources:
29+
requests:
30+
memory: 32Mi
31+
cpu: 5m
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: guestbook-ui
5+
spec:
6+
ports:
7+
- port: 80
8+
targetPort: 80
9+
selector:
10+
app: guestbook-ui

0 commit comments

Comments
 (0)