From 53eebe141a304d71a5c5698ac44142e21388711d Mon Sep 17 00:00:00 2001 From: vathakur Date: Thu, 3 Jul 2025 14:46:08 +0530 Subject: [PATCH] Documentation suggests annotating auto-memory-limits-ratio --- modules/virt-setting-resource-quota-limits-for-vms.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/virt-setting-resource-quota-limits-for-vms.adoc b/modules/virt-setting-resource-quota-limits-for-vms.adoc index d6ddee4a5d..9e9f60bdf1 100644 --- a/modules/virt-setting-resource-quota-limits-for-vms.adoc +++ b/modules/virt-setting-resource-quota-limits-for-vms.adoc @@ -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]