-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yaml
50 lines (50 loc) · 1.08 KB
/
app.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: rest-service
spec:
selector:
app: node-rest
ports:
- port: 3000
targetPort: 3000
type: NodePort
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: rest-deployment
labels:
app: node-rest
spec:
template:
metadata:
labels:
app: node-rest
version: v1
spec:
containers:
- name: node-rest
image: malathit90/ind-geo:v2
env:
- name: SERVER_PORT
value: "3000"
- name: DATABASE
valueFrom:
secretKeyRef:
name: db-secret
key: database
- name: DATABASE_USER
valueFrom:
secretKeyRef:
name: db-secret
key: username
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: db-secret
key: password
- name: DB_HOST
value: "maria-db"
ports:
- containerPort: 3000