forked from cockroachlabs-field/crdb-geo-tourist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrdb-geo-tourist.yaml
51 lines (49 loc) · 1.03 KB
/
crdb-geo-tourist.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
apiVersion: v1
kind: Service
metadata:
name: crdb-geo-tourist-lb
spec:
selector:
app: crdb-geo-tourist
ports:
- protocol: "TCP"
port: 80
targetPort: 18080
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: crdb-geo-tourist
spec:
selector:
matchLabels:
app: crdb-geo-tourist
replicas: 2
template:
metadata:
labels:
app: crdb-geo-tourist
spec:
containers:
- name: crdb-geo-tourist
image: mgoddard/crdb-geo-tourist:1.0
imagePullPolicy: Always
env:
- name: PGHOST
value: "cockroachdb-public"
- name: PGPORT
value: "26257"
- name: PGDATABASE
value: "defaultdb"
- name: PGUSER
value: "tourist"
- name: PGPASSWORD
value: "tourist"
- name: MAPBOX_TOKEN
value: "$MAPBOX_TOKEN"
- name: USE_GEOHASH
value: "True"
ports:
- containerPort: 18080
restartPolicy: Always