forked from Xenon-Bot/xenon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
103 lines (97 loc) · 1.74 KB
/
deploy.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
apiVersion: v1
kind: Namespace
metadata:
name: xenon
---
apiVersion: v1
kind: Service
metadata:
name: redis
namespace: xenon
labels:
app: redis
spec:
ports:
- port: 6379
targetPort: 6379
selector:
app: redis
role: master
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
namespace: xenon
labels:
app: redis
spec:
selector:
matchLabels:
app: redis
role: master
replicas: 1
template:
metadata:
labels:
app: redis
role: master
spec:
containers:
- name: master
image: redis
resources:
requests:
memory: 100Mi
limits:
memory: 250Mi
ports:
- containerPort: 6379
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: xenon
namespace: xenon
spec:
selector:
matchLabels:
app: xenon
serviceName: "xenon"
replicas: 16
template:
metadata:
labels:
app: xenon
spec:
terminationGracePeriodSeconds: 10
containers:
- name: xenon
image: r.cfcr.io/{{CF_ACCOUNT}}/{{CF_REPO_NAME}}:{{CF_SHORT_REVISION}}
env:
- name: SHARD_COUNT
value: "96"
- name: SHARDS_PER_POD
value: "6"
envFrom:
- configMapRef:
name: xenon
- secretRef:
name: dbcred
ports:
- name: api
containerPort: 9090
livenessProbe:
initialDelaySeconds: 1200
periodSeconds: 60
failureThreshold: 3
httpGet:
path: /health
port: api
resources:
requests:
memory: 1Gi
limits:
memory: 2Gi
imagePullSecrets:
- name: regcred