Skip to content

Commit 5eb59c3

Browse files
authored
feat: update autoscaler docs to use new Che CR field (#2762)
Signed-off-by: dkwon17 <dakwon@redhat.com>
1 parent b08ab2b commit 5eb59c3

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,18 @@ You need to make additional configurations to the {prod-short} installation to e
2020

2121
.Procedure
2222

23-
. In the CheCluster Custom Resource, set the `spec.devEnvironments.startTimeoutSeconds` field to at least 600 seconds to allow time for a new node to be provisioned when needed during workspace startup.
23+
. In the CheCluster Custom Resource, set the following fields to allow proper workspace startup when the autoscaler is provisioning a new node.
2424
+
2525
[source,yaml,subs="+quotes,+attributes"]
2626
----
2727
spec:
2828
devEnvironments:
29-
startTimeoutSeconds: 600
30-
----
31-
32-
. In the DevWorkspaceOperatorConfig Custom Resource in the {prod-namespace} namespace, add the `FailedScheduling` event to the `config.workpsace.ignoredUnrecoverableEvents` field. This allows the workspace startup to not fail if not enough nodes are available. When the new node is provisioned, this allows the workspace startup to continue.
33-
+
34-
[source,yaml,subs="+quotes,+attributes"]
35-
----
36-
config:
37-
workspace:
38-
ignoredUnrecoverableEvents:
39-
- FailedScheduling
29+
startTimeoutSeconds: 600 <1>
30+
ignoredUnrecoverableEvents: <2>
31+
- FailedScheduling
4032
----
33+
<1> Set to at least 600 seconds to allow time for a new node to be provisioned during workspace startup.
34+
<2> Ignore the `FailedScheduling` event to allow workspace startup to continue when a new node is provisioned.
4135

4236
== When the autoscaler removes a node
4337
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.

0 commit comments

Comments
 (0)