-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
40 lines (40 loc) · 945 Bytes
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-crm-deployment
spec:
replicas: 2
selector:
matchLabels:
app: demo-crm
template:
metadata:
labels:
app: demo-crm
spec:
containers:
- name: demo-crm
image: pwstaging/demo-crm:latest
ports:
- containerPort: 3000
envFrom:
- configMapRef:
name: demo-crm-conf
env:
- name: MONGODB_URI
valueFrom:
secretKeyRef:
name: mongo-uri-secret
key: uri
- name: MONGODB_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mysecret
key: mongo-root-password
resources:
limits:
memory: 512Mi
cpu: "1"
requests:
memory: 256Mi
cpu: "0.2"