mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
Merge pull request #95765 from openshift-cherrypick-robot/cherry-pick-95589-to-enterprise-4.20
[enterprise-4.20] CNV# 64080 - Documentation suggests annotating auto-memory-limits-ratio
This commit is contained in:
@@ -8,11 +8,11 @@
|
||||
|
||||
By default, {VirtProductName} automatically manages CPU and memory limits for virtual machines (VMs) if a namespace enforces resource quotas that require limits to be set. The memory limit is automatically set to twice the requested memory and the CPU limit is set to one per vCPU.
|
||||
|
||||
You can customize the memory limit ratio for a specific namespace by adding the `alpha.kubevirt.io/auto-memory-limits-ratio` annotation to the namespace. For example, the following command sets the memory limit ratio to 1.2:
|
||||
You can customize the memory limit ratio for a specific namespace by adding the `alpha.kubevirt.io/auto-memory-limits-ratio` label to the namespace. For example, the following command sets the memory limit ratio to 1.2:
|
||||
|
||||
[source,terminal]
|
||||
----
|
||||
$ oc annotate namespace my-virtualization-project alpha.kubevirt.io/auto-memory-limits-ratio=1.2
|
||||
oc label ns/my-virtualization-project alpha.kubevirt.io/auto-memory-limits-ratio=1.2
|
||||
----
|
||||
|
||||
[WARNING]
|
||||
|
||||
Reference in New Issue
Block a user