-
Notifications
You must be signed in to change notification settings - Fork 1
/
Deployment.yaml
74 lines (72 loc) · 1.42 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: nikee-app
spec:
replicas: 1
selector:
matchLabels:
app: nikee
template:
metadata:
labels:
app: nikee
spec:
containers:
- name: nikee-frontend
image: virous77/nike:5
env:
- name: VITE_URL
value: "/api/"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nikee-backend-app
spec:
replicas: 1
selector:
matchLabels:
app: nikee-server
template:
metadata:
labels:
app: nikee-server
spec:
containers:
- name: nikee-server
image: virous77/nike-backend
env:
- name: PORT
value: "4000"
- name: MONGO_URI
value: "mongodb://mongo-service.default"
- name: KEY_SECRET
value: "RazorPAY SECRET Key"
- name: KEY_ID
value: "RazorPAY KEY Id"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mongo-app
spec:
replicas: 1
selector:
matchLabels:
app: mongo-server
template:
metadata:
labels:
app: mongo-server
spec:
containers:
- name: mongo-server
image: mongo
volumeMounts:
- mountPath: /data/db
name: mongo-volume
volumes:
- name: mongo-volume
persistentVolumeClaim:
claimName: host-pvc