< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

Set Auto Expansion for Storage Volumes

This section describes how to set auto expansion for storage volumes.

Set the system to automatically expand volumes when the remaining volume space is lower than a threshold.

Prerequisites

  • KubeSphere Storage should have been installed and enabled.

  • You should join a cluster and have the Storage Class Management permission within the cluster. For more information, refer to "Cluster Members" and "Cluster Roles".

  • Ensure that the backend storage system supports volume expansion functionality and that the storage class has enabled volume expansion. For more information, see Enable and Disable Volume Operations.

Steps

  1. Log in to the KubeSphere web console with a user who has the Storage Class Management permission, and access your cluster.

  2. Click Storage > Storage Classes in the left navigation pane.

  3. Click the name of a storage class in the list to open its details page.

  4. In the upper-left corner of the storage class details page, select More > Set Auto Expansion.

  5. In the Set Auto Expansion dialog, click the Disabled button on the right side of the page to enable the auto-expansion feature.

    Note

    If you need to disable the auto-expansion feature, click Enabled on the right side of the page.

  6. In the Auto Expansion setting area, set the maximum capacity, threshold, and increment for expansion.

  7. (Optional) If you want the system to automatically check the volume status and restart workloads, check Restart workload automatically.

  8. After setting, click OK.

Receive the latest news, articles and updates from KubeSphere


Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.

What’s on this Page