-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusage.yaml
63 lines (63 loc) · 1.46 KB
/
usage.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: usage
labels:
app: usage
spec:
replicas: 1
selector:
matchLabels:
app: usage
template:
metadata:
labels:
app: usage
spec:
containers:
- name: usage
image: eu.gcr.io/grid-301122/usage:containerised
imagePullPolicy: Always
volumeMounts:
- name: gu-config
mountPath: /etc/gu
- name: grid-config
mountPath: /etc/grid
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: grid-aws-access-token
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: grid-aws-access-token
key: AWS_SECRET_ACCESS_KEY
- name: PLAY_SECRET
valueFrom:
secretKeyRef:
name: grid-play-secret
key: play-secret
livenessProbe:
initialDelaySeconds: 120
httpGet:
path: /management/healthcheck
port: 9000
readinessProbe:
httpGet:
path: /management/healthcheck
port: 9000
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "384Mi"
volumes:
- name: gu-config
configMap:
name: gu
- name: grid-config
configMap:
name: grid