✨ add CPU and MEMORY limit
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user