-
Notifications
You must be signed in to change notification settings - Fork 2
/
kubernetes.yaml
56 lines (52 loc) · 1.17 KB
/
kubernetes.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
55
56
apiVersion: apps/v1
kind: Deployment
metadata:
name: data-mapping-tool-client-deployment
labels:
app: data-mapping-tool-client
spec:
replicas: 1
selector:
matchLabels:
app: data-mapping-tool-client
strategy:
type: Recreate
template:
metadata:
labels:
app: data-mapping-tool-client
spec:
containers:
- name: data-mapping-tool-client
image: docker.tech.beegroup-cimne.com/data-mapping-tool/client:latest
command: [ "npm", "start" ]
ports:
- containerPort: 3000
volumeMounts:
- name: client-secret
mountPath: /app/.env
subPath: .env
imagePullSecrets:
- name: registrypullsecret
volumes:
- name: client-secret
secret:
secretName: client-secrets
items:
- key: .env
path: .env
---
apiVersion: v1
kind: Service
metadata:
name: data-mapping-tool-client-service
labels:
app: data-mapping-tool-client-service
spec:
type: LoadBalancer
selector:
app: data-mapping-tool-client
ports:
- protocol: TCP
port: 80
targetPort: 3000