forked from DutchKevv/coinpush-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yml
executable file
·75 lines (75 loc) · 1.9 KB
/
deployment.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
apiVersion: apps/v1
kind: Deployment
metadata:
name: cp-api-pod
spec:
replicas: 1
selector:
matchLabels:
app: coinpush
template:
metadata:
labels:
name: api
app: coinpush
spec:
volumes:
- name: shared
hostPath:
path: /mnt/coinpush-api/shared
type: Directory
- name: config
hostPath:
path: /mnt/coinpush-api/_config
type: Directory
- name: gateway-src
hostPath:
path: /mnt/coinpush-api/server-gateway/src
type: Directory
- name: user-src
hostPath:
path: /mnt/coinpush-api/server-user/src
containers:
- name: redis
image: redis
ports:
- containerPort: 6379
- name: gateway
imagePullPolicy: Never
image: registry.coinpush.app/gateway
command: ["npm", "start"]
# command: ["npm", "run", "prod"]
ports:
- containerPort: 3100
hostPort: 3100
volumeMounts:
- name: shared
mountPath: /usr/src/app/shared
- name: config
mountPath: /usr/src/app/_config
- name: gateway-src
mountPath: /usr/src/app/server-gateway/src
- name: user
imagePullPolicy: Never
image: registry.coinpush.app/user
command: ["npm", "start"]
# command: ["npm", "run", "prod"]
ports:
- containerPort: 3008
volumeMounts:
- name: config
mountPath: /usr/src/app/_config
- name: user-src
mountPath: /usr/src/app/server-user/src
# ---
# kind: Service
# apiVersion: v1
# metadata:
# name: cp-service
# spec:
# selector:
# app: coinpush
# ports:
# - protocol: TCP
# port: 5000
# targetPort: 3101