Skip to content

Commit

Permalink
Ensure users can run more than one workspace
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Oct 8, 2020
1 parent 3c5c42e commit 71b7d19
Showing 1 changed file with 15 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ The {platforms-namespace} strategies are configured using the `CHE_INFRA_KUBERNE

WARNING: `CHE_INFRA_KUBERNETES_NAMESPACE` and `CHE_INFRA_OPENSHIFT_PROJECT` are legacy variables. Keep these variables unset for a new installations. Changing these variables during an update can lead to data loss.

[IMPORTANT]
====
To run more than one workspace at a time:
1. Remove the limit of concurrently running workspaces per user:
ifeval::["{project-context}" == "che"]
* For Helm Chart deployments: set the `.global.workspace.number` parameter to `-1`.
endif::[]
* For Operator deployments: set the `spec.server.cheCustomProperties.CHE_LIMITS_USER_WORKSPACE_RUN_COUNT` variable of the CheCluster Custom Resource (CR) to `-1`.
2. For `common` PVC strategy configure persistent volumes to use `ReadWriteMany` access mode.
====

== One {orch-namespace} per workspace strategy

The strategy creates a new {orch-namespace} for each new workspace.
Expand Down Expand Up @@ -42,8 +57,6 @@ CHE_INFRA_KUBERNETES_NAMESPACE_DEFAULT=__{prod-workspace}__
----
====

IMPORTANT: To run more than one workspace at a time when using this strategy together with the `common` PVC strategy, configure persistent volumes to use `ReadWriteMany` access mode.

== One {orch-namespace} per user strategy

The strategy isolates each user in their own {orch-namespace}.
Expand All @@ -60,23 +73,6 @@ CHE_INFRA_KUBERNETES_NAMESPACE_DEFAULT=__{prod-workspace}__-__<username>__
----
====

[IMPORTANT]
====
To run more than one workspace at a time when using this strategy together with the `common` PVC strategy, configure persistent volumes to use `ReadWriteMany` access mode.
To limit the number of concurrently running workspaces per user to one, set the `CHE_LIMITS_USER_WORKSPACES_RUN_COUNT` environment variable to `1`.
// Links to Helm and Operator docs need to be added below:
To limit the number of concurrently running workspaces per user to one (1):
ifeval::["{project-context}" == "che"]
* For Helm Chart deployments: set the `.global.workspace.number` parameter to `1`.
endif::[]
* For Operator deployments: set the `spec.server.cheCustomProperties.CHE_LIMITS_USER_WORKSPACE_RUN_COUNT` variable of the CheCluster Custom Resource (CR) to `1`.
====

== Allowing user-defined workspace {orch-namespace}s

{prod-short} server can be configured to honor the user selection of a {orch-namespace} when a workspace is created. This feature is disabled by default. To allow user-defined workspace {orch-namespace}s:
Expand Down

0 comments on commit 71b7d19

Please sign in to comment.