✨ add CPU and MEMORY limit

This commit is contained in:
2024-07-24 15:16:10 +01:00
parent 1ea0cb0670
commit 059901d7d8
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -31,6 +31,10 @@ spec:
mountPath: /data/db mountPath: /data/db
- name: unifi-db-init - name: unifi-db-init
mountPath: /docker-entrypoint-initdb.d/init-mongo.js mountPath: /docker-entrypoint-initdb.d/init-mongo.js
resources:
limits:
cpu: 100m
memory: 50Mi
ports: ports:
- containerPort: 27017 - containerPort: 27017
protocol: TCP protocol: TCP
+4
View File
@@ -47,6 +47,10 @@ spec:
value: #optional value: #optional
- name: MONGO_AUTHSOURCE - name: MONGO_AUTHSOURCE
value: #optional value: #optional
resources:
limits:
cpu: 100m
memory: 50Mi
volumeMounts: volumeMounts:
- name: unifi-ui-config - name: unifi-ui-config
mountPath: /config mountPath: /config