-
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: document PVC size configuration
Signed-off-by: Andrew Obuchowicz <[email protected]>
- Loading branch information
Showing
4 changed files
with
45 additions
and
39 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
38 changes: 38 additions & 0 deletions
38
modules/administration-guide/pages/configuring-che-storage-size.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,38 @@ | ||
:_content-type: CONCEPT | ||
:description: Configuring the storage size in {prod-short} | ||
:keywords: administration guide, configuring, {prod-id-short}, storage size, PVC size, pvc | ||
:navtitle: Configuring the storage size in {prod-short} | ||
:page-aliases: installation-guide:configuring-che-storage-size.adoc | ||
|
||
[id="configuring-{prod-id-short}-workspace-pvc-size"] | ||
= Configuring the storage size in {prod-short} | ||
|
||
The persistent volume claim (PVC) size can be configured when using the `per-user` or `per-workspace` storage strategies. PVC sizes in the Che Cluster Custom Resource must be specified in the format of a https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/[{kubernetes} resource quantity]. For more details on the available storage strategies, see xref:configuring-che-storage-strategy.adoc[] | ||
|
||
.Default persistent volume claim sizes: | ||
|
||
* `per-user`: `10Gi` | ||
* `per-workspace`: `5Gi` | ||
|
||
.Procedure | ||
|
||
Use CheCluster Custom Resource definition to define the persistent volume claim size for the desired storage strategy: | ||
|
||
Set the appropriate `claimSize` field for the desired storage strategy in the Che Cluster Custom Resource. To set this field prior to installing {prod-short}, see xref:using-chectl-to-configure-the-checluster-custom-resource-during-installation.adoc[], otherwise consult xref:using-the-cli-to-configure-the-checluster-custom-resource.adoc[]. | ||
|
||
[source,yaml,subs="+quotes,+attributes"] | ||
---- | ||
spec: | ||
devEnvironments: | ||
storage: | ||
pvc: | ||
# the claimSize field that will be used depends on the selected pvcStrategy | ||
# in this example, a persistent volume claim size of 15Gi will be used as the selected pvcStrategy is 'per-user' | ||
pvcStrategy: 'per-user' | ||
perUserStrategyPvcConfig: | ||
# keep blank unless you need to use a non default persistent volume claim size | ||
claimSize: 15Gi | ||
perWorkspaceStrategyPvcConfig: | ||
# keep blank unless you need to use a non default persistent volume claim size | ||
claimSize: 2Gi | ||
---- |
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