-
Notifications
You must be signed in to change notification settings - Fork 0
/
yawn-webserver-deployment.yaml
49 lines (49 loc) · 1.31 KB
/
yawn-webserver-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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: yawn-webserver
spec:
replicas: 2
template:
metadata:
labels:
app: yawn-webserver
spec:
containers:
- name: yawn-webserver
image: quay.io/aclowes/yawn-gke:latest
# TODO run migrations on startup
args: ["yawn", "webserver"]
ports:
- containerPort: 8000
resources:
limits:
cpu: 200m
memory: 200M
requests:
cpu: 0m
memory: 100M
env:
- name: GUNICORN_CMD_ARGS
value: "-b 0.0.0.0:8000 --access-logformat '%(h)s %(l)s %(u)s %(t)s \"%(r)s\" %(s)s %(b)s \"%(f)s\" \"%(a)s\" %({Host}i)s %({X-Forwarded-Proto}i)s'"
- name: ALLOWED_HOSTS
value: ".yawn.live"
- name: KUBERNETES_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- 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