From 8fa3f8f33ea4d60460d84a3afa2a2cd6c116739d Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Thu, 31 Oct 2024 15:52:58 +0800 Subject: [PATCH] Update the resource usage docs --- site/content/en/docs/user/resource-usage-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/en/docs/user/resource-usage-configuration.md b/site/content/en/docs/user/resource-usage-configuration.md index 18d2f7cb7..b7d4523bb 100644 --- a/site/content/en/docs/user/resource-usage-configuration.md +++ b/site/content/en/docs/user/resource-usage-configuration.md @@ -65,7 +65,7 @@ expression: | With CEL expressions, it is even possible to simulate resource usages dynamically. For example, the following expression yields memory usage that grows linearly with time. ```yaml -expression: (pod.SinceSecond() / 60.0) * Quantity("1Mi") +expression: 'Quantity("1Mi") * (pod.SinceSecond() / 60.0)' ``` Please refer to [CEL expressions in `kwok`][CEL expressions] for an exhausted list that may be helpful to configure dynamic resource usage.