-
Notifications
You must be signed in to change notification settings - Fork 0
/
yawn-worker-deployment.yaml
60 lines (60 loc) · 1.48 KB
/
yawn-worker-deployment.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: extensions/v1beta1
kind: Deployment
metadata:
name: yawn-worker
spec:
replicas: 2
template:
metadata:
labels:
app: yawn-worker
spec:
containers:
- name: yawn-worker
image: quay.io/aclowes/yawn-gke:latest
args: ["yawn", "worker"]
resources:
limits:
cpu: 500m
memory: 768M
requests:
cpu: 0m
memory: 100M
volumeMounts:
- name: credentials-volume
mountPath: /etc/credentials
readOnly: true
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/credentials/gcp.json
- name: KUBERNETES_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: GITHUB_TOKEN
valueFrom:
secretKeyRef:
name: yawn-secrets
key: GITHUB_TOKEN
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: yawn-secrets
key: DATABASE_URL
- name: SECRET_KEY
valueFrom:
secretKeyRef:
name: yawn-secrets
key: SECRET_KEY
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
name: yawn-secrets
key: SENTRY_DSN
volumes:
- name: credentials-volume
secret:
secretName: yawn-secrets
items:
- key: gcp.json
path: gcp.json