-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcanarydeployments.yaml
60 lines (60 loc) · 1.3 KB
/
canarydeployments.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
apiVersion: kanarini.nilebox.github.com/v1alpha1
kind: CanaryDeployment
metadata:
name: emoji
namespace: kanarini-demo
spec:
selector:
matchLabels:
app: emoji
template:
metadata:
labels:
app: emoji
spec:
containers:
- name: emoji
image: nilebox/kanarini-example:1.0
ports:
- containerPort: 8080
name: http
- containerPort: 9090
name: metrics
readinessProbe:
tcpSocket:
port: 8080
failureThreshold: 1
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2
livenessProbe:
tcpSocket:
port: 8080
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2
tracks:
canary:
replicas: 1
labels:
track: canary
metricsCheckDelaySeconds: 60
metrics:
- type: Object
object:
describedObject:
kind: "Service"
name: "emoji-canary"
metric:
name: "failure_by_service_1m"
target:
type: Value
value: 0.1
stable:
replicas: 3
labels:
track: stable