Skip to content

Commit d70fbb2

Browse files
Documentation suggests annotating auto-memory-limits-ratio
1 parent 895882e commit d70fbb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/virt-setting-resource-quota-limits-for-vms.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
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.
1010

11-
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:
11+
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:
1212

1313
[source,terminal]
1414
----
15-
$ oc annotate namespace my-virtualization-project alpha.kubevirt.io/auto-memory-limits-ratio=1.2
15+
oc label ns/my-virtualization-project alpha.kubevirt.io/auto-memory-limits-ratio=1.2
1616
----
1717

1818
[WARNING]

0 commit comments

Comments
 (0)