Document memory allocation.
This commit is contained in:
parent
7644e65ab0
commit
16a15bc9ad
1 changed files with 13 additions and 10 deletions
|
|
@ -22,6 +22,19 @@ spec:
|
||||||
image: >-
|
image: >-
|
||||||
ghcr.io/mnlipp/org.jdrupes.vmoperator.manager:latest
|
ghcr.io/mnlipp/org.jdrupes.vmoperator.manager:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: JAVA_OPTS
|
||||||
|
# The VM operator needs about 25 MB of memory, plus 1 MB for
|
||||||
|
# each VM. The reason is that for the sake of effeciency, we
|
||||||
|
# have to keep a parsed representation of the CRD in memory,
|
||||||
|
# which requires about 512 KB per VM. While handling updates,
|
||||||
|
# we temporarily have the old and the new version of the CRD
|
||||||
|
# in memory, so we need another 512 KB per VM.
|
||||||
|
value: "-Xmx128m"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /etc/opt/vmoperator
|
mountPath: /etc/opt/vmoperator
|
||||||
|
|
@ -33,16 +46,6 @@ spec:
|
||||||
- ALL
|
- ALL
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
# The VM operator needs about 25 MB of memory, plus 1 MB for
|
|
||||||
# each VM. The reason is that for the sake of effeciency, we
|
|
||||||
# have to keep a parsed representation of the CRD in memory,
|
|
||||||
# which requires about 512 KB per VM. While handling updates,
|
|
||||||
# we temporarily have the old and the new version of the CRD
|
|
||||||
# in memory, so we need another 512 KB per VM.
|
|
||||||
memory: 256Mi
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue