forked from cockroachlabs/movr-flask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
movr.yaml
54 lines (54 loc) · 1.05 KB
/
movr.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
# Deployment object
apiVersion: apps/v1
kind: Deployment
metadata:
name: movr-deployment
labels:
app: movr-app
spec:
selector:
matchLabels:
app: movr-app
replicas: 2
template:
metadata:
labels:
app: movr-app
spec:
containers:
- image: gcr.io/<project>/movr-app:v1
imagePullPolicy: Always
name: movr-app
ports:
- containerPort: 8080
envFrom:
- secretRef:
name: movr-db-uri
- secretRef:
name: maps-api-key
args: ["gunicorn", "-c", "/web/gunicorn.py", "server:app"]
volumeMounts:
- mountPath: "/certs"
name: certs
volumes:
- name: certs
secret:
secretName: movr-db-cert
---
# Service object
apiVersion: v1
kind: Service
metadata:
labels:
app: movr-app
name: movr-app
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
name: http
nodePort: 30062
selector:
app: movr-app
type: NodePort