-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeployment.yml
More file actions
executable file
·46 lines (46 loc) · 1.3 KB
/
deployment.yml
File metadata and controls
executable file
·46 lines (46 loc) · 1.3 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: cp-client-web-pod
spec:
selector:
matchLabels:
app: coinpush
template:
metadata:
name: client-web
labels:
app: coinpush
spec:
volumes:
- name: package-json
hostPath:
path: /coinpush/coinpush-client-web/package.json
type: File
- name: client-web-src
hostPath:
path: /coinpush/coinpush-client-web/src
# - name: shared
# hostPath:
# path: '/usr/src/app/coinpush-shared/src'
# type: Directory
containers:
- name: client-web
imagePullPolicy: Never
image: registry.coinpush.app/client-web
command: ["npm", "start"]
ports:
- containerPort: 4200
hostPort: 4200
volumeMounts:
- name: package-json
mountPath: /usr/src/app/client-web/package.json
- name: client-web-src
mountPath: /usr/src/app/client-web/src
# - name: shared
# mountPath: /C/Users/kewin/Projects/coinpush/coinpush-shared/src
resources:
requests:
memory: "2000Mi"
limits:
memory: "4000Mi"