Skip to content

Commit d1869a7

Browse files
committed
Add request and limit to mongo deployment
1 parent 570df67 commit d1869a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

recipai-chart/templates/mongodb-deployment.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,19 @@ spec:
1414
containers:
1515
- name: mongodb
1616
image: mongo:6.0
17+
imagePullPolicy: IfNotPresent
1718
ports:
1819
- containerPort: 27017
1920
volumeMounts:
2021
- name: mongo-storage
2122
mountPath: /data/db
23+
resources:
24+
requests:
25+
memory: "256Mi"
26+
cpu: "100m"
27+
limits:
28+
memory: "512Mi"
29+
cpu: "500m"
2230
env:
2331
- name: MONGO_INITDB_ROOT_USERNAME
2432
value: {{ .Values.db.adminUsername }}

0 commit comments

Comments
 (0)