Skip to content

Latest commit

 

History

History
68 lines (51 loc) · 2.64 KB

configuring-storage-sizes.adoc

File metadata and controls

68 lines (51 loc) · 2.64 KB

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 {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
Procedure
  1. 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)
  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 {kubernetes} resource quantity. The available quantity units include: Ei, Pi, Ti, Gi, Mi and Ki.

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 CheCluster custom resource and restart the workspace.