-
Notifications
You must be signed in to change notification settings - Fork 54
/
rollout.yaml
41 lines (41 loc) · 859 Bytes
/
rollout.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: rollouts-demo
labels:
app: rollouts-demo
spec:
replicas: 5
revisionHistoryLimit: 3
selector:
matchLabels:
app: rollouts-demo
template:
metadata:
labels:
app: rollouts-demo
spec:
containers:
- name: rollouts-demo
image: "alexmt/rollouts-demo:latest"
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
strategy:
# blueGreen:
# activeService: rollouts-demo
# previewService: rollouts-demo-preview
canary:
steps:
- setWeight: 20
- pause: {}