Skip to content

Commit 54c8721

Browse files
committed
fix: safe-to-evict annotation value
Signed-off-by: dkwon17 <dakwon@redhat.com>
1 parent 1b79a9e commit 54c8721

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/administration-guide/pages/configuring-machine-autoscaling.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,26 @@ spec:
3434
<2> Ignore the `FailedScheduling` event to allow workspace startup to continue when a new node is provisioned.
3535

3636
== When the autoscaler removes a node
37-
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.
37+
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.
3838

3939
.Procedure
4040

41-
. In the CheCluster Custom Resource, add the `cluster-autoscaler.kubernetes.io/safe-to-evict: "true"` annotation in the `spec.devEnvironments.workspacesPodAnnotations` field.
41+
. In the CheCluster Custom Resource, add the `cluster-autoscaler.kubernetes.io/safe-to-evict: "false"` annotation in the `spec.devEnvironments.workspacesPodAnnotations` field.
4242
+
4343
[source,yaml,subs="+quotes,+attributes"]
4444
----
4545
spec:
4646
devEnvironments:
4747
workspacesPodAnnotations:
48-
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
48+
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
4949
----
5050

5151
.Verification steps
5252

53-
. Start a workspace and verify that the workspace pod contains the `cluster-autoscaler.kubernetes.io/safe-to-evict: "true"` annotation.
53+
. Start a workspace and verify that the workspace pod contains the `cluster-autoscaler.kubernetes.io/safe-to-evict: "false"` annotation.
5454
+
5555
[subs="+attributes,+quotes"]
5656
----
5757
$ {orch-cli} get pod __<workspace_pod_name>__ -o jsonpath='{.metadata.annotations.cluster-autoscaler\.kubernetes\.io/safe-to-evict}'
58-
true
58+
false
5959
----

0 commit comments

Comments
 (0)