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 {kubernetes} resource quantity. For more details on the available storage strategies, see this page.
Default persistent volume claim sizes:
-
per-user: 10Gi
-
per-workspace: 5Gi
-
Set the appropriate
claimSize
field for the desired storage strategy in the Che Cluster Custom Resource.
Note
|
|
spec:
devEnvironments:
storage:
pvc:
pvcStrategy: '<strategy_name>' (1)
perUserStrategyPvcConfig: (2)
claimSize: <resource_quantity> (3)
perWorkspaceStrategyPvcConfig: (2)
claimSize: <resource_quantity> (3)
-
Select the storage strategy:
per-user
orper-workspace
orephemeral
. Note: theephemeral
storage strategy does not use persistent storage, therefore you cannot configure its storage size or other PVC-related attributes. -
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.
-
The claim size must be specified as a {kubernetes} resource quantity. The available quantity units include:
Ei
,Pi
,Ti
,Gi
,Mi
andKi
.
Important
|
Manually modifying a PVC on the cluster that was provisioned by {prod-short} is not officially supported and may result in unexpected consequences. If you want to resize a PVC,
modify the default workspace storage size in the |