-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathbackend-deployment.yml
More file actions
33 lines (33 loc) · 839 Bytes
/
backend-deployment.yml
File metadata and controls
33 lines (33 loc) · 839 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend-deployment
namespace: chat-app
spec:
replicas: 1
selector:
matchLabels:
app: backend
template:
metadata:
name: backend-pod
labels:
app: backend
spec:
containers:
- name: chat-backend
image: abhay41/chatapp-backend:latest
ports:
- containerPort: 5001
env:
- name: NODE_ENV
value: "production"
- name: MONGODB_URI
value: "mongodb://root:admin@mongodb-service:27017/chatApp?authSource=admin&retryWrites=true&w=majority"
- name: PORT
value: "5001"
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: chatapp-secrets
key: jwt