From 3f6ab3bbf2851ae03b5039a6b8362cf74d83c2a6 Mon Sep 17 00:00:00 2001 From: dkwon17 Date: Thu, 22 Aug 2024 15:14:26 +0000 Subject: [PATCH] fix: safe-to-evict annotation value Signed-off-by: dkwon17 --- .../pages/configuring-machine-autoscaling.adoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/administration-guide/pages/configuring-machine-autoscaling.adoc b/modules/administration-guide/pages/configuring-machine-autoscaling.adoc index b93040e0a3..a4a329e539 100644 --- a/modules/administration-guide/pages/configuring-machine-autoscaling.adoc +++ b/modules/administration-guide/pages/configuring-machine-autoscaling.adoc @@ -34,26 +34,26 @@ spec: <2> Ignore the `FailedScheduling` event to allow workspace startup to continue when a new node is provisioned. == When the autoscaler removes a node -To prevent workspace pods from being evicted when the autoscaler needs to remove a node, add the `"cluster-autoscaler.kubernetes.io/safe-to-evict": "true"` annotation to every workspace pod. +To prevent workspace pods from being evicted when the autoscaler needs to remove a node, add the `"cluster-autoscaler.kubernetes.io/safe-to-evict": "false"` annotation to every workspace pod. .Procedure -. In the CheCluster Custom Resource, add the `cluster-autoscaler.kubernetes.io/safe-to-evict: "true"` annotation in the `spec.devEnvironments.workspacesPodAnnotations` field. +. In the CheCluster Custom Resource, add the `cluster-autoscaler.kubernetes.io/safe-to-evict: "false"` annotation in the `spec.devEnvironments.workspacesPodAnnotations` field. + [source,yaml,subs="+quotes,+attributes"] ---- spec: devEnvironments: workspacesPodAnnotations: - cluster-autoscaler.kubernetes.io/safe-to-evict: "true" + cluster-autoscaler.kubernetes.io/safe-to-evict: "false" ---- .Verification steps -. Start a workspace and verify that the workspace pod contains the `cluster-autoscaler.kubernetes.io/safe-to-evict: "true"` annotation. +. Start a workspace and verify that the workspace pod contains the `cluster-autoscaler.kubernetes.io/safe-to-evict: "false"` annotation. + [subs="+attributes,+quotes"] ---- $ {orch-cli} get pod ____ -o jsonpath='{.metadata.annotations.cluster-autoscaler\.kubernetes\.io/safe-to-evict}' -true +false ----