Set Authorization Rules
This section describes how to set authorization rules for storage classes.
After setting and enabling the authorization rules, users can only use the storage class in specific projects and workspaces.
Prerequisites
KubeSphere Storage should have been installed and enabled.
You should join a cluster and have the Storage Class Accessors Management permission within the cluster. For more information, refer to "Cluster Members" and "Cluster Roles".
Steps
Log in to the KubeSphere web console with a user who has the Storage Class Accessors Management permission, and access your cluster.
Click Storage > Storage Classes in the left navigation pane.
Click the name of a storage class in the list to open its details page.
In the upper-left corner of the details page, select More > Set Authorization Rules.
In the Set Authorization Rules dialog, click the Disabled button on the right side of the page to enable the authorization rules.
Note To disable the authorization rules, click Enabled on the right side of the page.
In the Authorization Rules setting area, set the specific projects and workspaces where the storage class can be used.
After setting, click OK.
Feedback
Was this page Helpful?
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.