-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeployment.yaml
96 lines (95 loc) · 2.48 KB
/
Deployment.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
apiVersion: apps/v1
kind: Deployment
metadata:
name: server-app
spec:
selector:
matchLabels:
app: server
template:
metadata:
labels:
app: server
spec:
containers:
- name: server
image: virous77/bank-server:1
env:
- name: EMAIL
valueFrom:
configMapKeyRef:
name: server-config
key: EMAIL
- name: PASSWORD
valueFrom:
configMapKeyRef:
name: server-config
key: PASSWORD
- name: REDIS_PASS
valueFrom:
configMapKeyRef:
name: server-config
key: REDIS_PASS
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: server-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: server-config
key: REDIS_PORT
- name: IMAGE_API_SECRET
valueFrom:
configMapKeyRef:
name: server-config
key: IMAGE_API_SECRET
- name: CLOUD_NAME
valueFrom:
configMapKeyRef:
name: server-config
key: CLOUD_NAME
- name: IMAGE_API_KEY
valueFrom:
configMapKeyRef:
name: server-config
key: IMAGE_API_KEY
- name: JWT_PRIVATE_KEY
valueFrom:
configMapKeyRef:
name: server-config
key: JWT_PRIVATE_KEY
- name: MONGO_URI
valueFrom:
configMapKeyRef:
name: server-config
key: MONGO_URI
- name: PORT
valueFrom:
configMapKeyRef:
name: server-config
key: PORT
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: client-app
spec:
selector:
matchLabels:
app: bank-client
template:
metadata:
labels:
app: bank-client
spec:
containers:
- name: bank-client
image: virous77/client-bank:12
env:
- name: VITE_RAPID_APIKEY
valueFrom:
configMapKeyRef:
name: server-config
key: VITE_RAPID_APIKEY