-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
procedures: update admin docs for storage classes, storage strategies…
… and storage size (#2536) Co-authored-by: Jana Vrbkova <[email protected]>
- Loading branch information
1 parent
9f80df6
commit 60748e7
Showing
5 changed files
with
111 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
modules/administration-guide/pages/configuring-storage-sizes.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
:_content-type: PROCEDURE | ||
:description: Configuring storage sizes | ||
:keywords: administration guide, configuring, {prod-id-short}, storage sizes, PVC size, pvc | ||
:navtitle: Configuring storage sizes | ||
:page-aliases: installation-guide:configuring-storage-sizes.adoc | ||
|
||
[id="configuring-storage-sizes"] | ||
= Configuring storage sizes | ||
|
||
You can configure the persistent volume claim (PVC) size using the `per-user` or `per-workspace` storage strategies. You must specify the PVC sizes in the `CheCluster` Custom Resource in the format of a link:https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/[{kubernetes} resource quantity]. For more details on the available storage strategies, see xref:configuring-the-storage-strategy.adoc[this page]. | ||
|
||
Default persistent volume claim sizes: | ||
|
||
* {empty} | ||
+ | ||
[source,yaml] | ||
---- | ||
per-user: 10Gi | ||
---- | ||
|
||
* {empty} | ||
+ | ||
[source,yaml] | ||
---- | ||
per-workspace: 5Gi | ||
---- | ||
|
||
|
||
.Procedure | ||
|
||
. Set the appropriate `claimSize` field for the desired storage strategy in the Che Cluster Custom Resource. | ||
|
||
[NOTE] | ||
==== | ||
* You can set this field at installation. See xref:using-chectl-to-configure-the-checluster-custom-resource-during-installation.adoc[]. | ||
* You can update this field on the command line. See xref:using-the-cli-to-configure-the-checluster-custom-resource.adoc[]. | ||
==== | ||
|
||
[source,yaml,subs="+quotes,+attributes"] | ||
---- | ||
spec: | ||
devEnvironments: | ||
storage: | ||
pvc: | ||
pvcStrategy: '__<strategy_name>__' <1> | ||
perUserStrategyPvcConfig: <2> | ||
claimSize: __<resource_quantity>__ <3> | ||
perWorkspaceStrategyPvcConfig: <2> | ||
claimSize: __<resource_quantity>__ <3> | ||
---- | ||
<1> Select the storage strategy: `per-user` or `per-workspace` or `ephemeral`. Note: the `ephemeral` storage strategy does not use persistent storage, therefore you cannot configure its storage size or other PVC-related attributes. | ||
<2> Specify a claim size on the next line or omit the next line to set the default claim size value. The specified claim size is only used when you select this storage strategy. | ||
<3> The claim size must be specified as a link:https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/[{kubernetes} resource quantity]. The available quantity units include: `Ei`, `Pi`, `Ti`, `Gi`, `Mi` and `Ki`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
modules/administration-guide/pages/configuring-the-storage-strategy.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
:_content-type: PROCEDURE | ||
:description: Configuring the storage strategy | ||
:keywords: administration guide, configuring, {prod-short}, storage, strategy, per-user, per-workspace, ephemeral | ||
:navtitle: Configuring the storage strategy | ||
:page-aliases: installation-guide:configuring-the-storage-strategy.adoc | ||
|
||
[id="configuring-the-storage-strategy"] | ||
= Configuring the storage strategy | ||
|
||
{prod-short} can be configured to provide persistent or non-persistent storage to workspaces by selecting a storage strategy. The selected storage strategy will be applied to all newly created workspaces by default. Users can opt for a non-default storage strategy for their workspace in their xref:end-user-guide:requesting-persistent-storage-for-workspaces.adoc[devfile] or through the xref:end-user-guide:url-parameter-for-the-workspace-storage.adoc[URL parameter]. | ||
|
||
Available storage strategies: | ||
|
||
* `per-user`: Use a single PVC for all workspaces created by a user. | ||
* `per-workspace`: Each workspace is given its own PVC. | ||
* `ephemeral`: Non-persistent storage; any local changes will be lost when the workspace is stopped. | ||
|
||
The default storage strategy used in {prod-short} is `per-user`. | ||
|
||
.Procedure | ||
|
||
. Set the `pvcStrategy` field in the Che Cluster Custom Resource to `per-user`, `per-workspace` or `ephemeral`. | ||
|
||
[NOTE] | ||
==== | ||
* You can set this field at installation. See xref:using-chectl-to-configure-the-checluster-custom-resource-during-installation.adoc[]. | ||
* You can update this field on the command line. See xref:using-the-cli-to-configure-the-checluster-custom-resource.adoc[]. | ||
==== | ||
|
||
[source,yaml,subs="+quotes,+attributes"] | ||
---- | ||
spec: | ||
devEnvironments: | ||
storage: | ||
pvc: | ||
pvcStrategy: 'per-user' <1> | ||
---- | ||
<1> The available storage strategies are `per-user`, `per-workspace` and `ephemeral`. |