Cluster Visibility and Authorization
In KubeSphere, you can allocate a cluster to multiple workspaces through authorization so that workspace resources can all run on the cluster. At the same time, a workspace can also be associated with multiple clusters. Workspace users with necessary permissions can create multi-cluster projects using clusters allocated to the workspace.
This guide demonstrates how to set cluster visibility.
Prerequisites
- You need to enable the multi-cluster feature.
- You need to have a workspace and a user that has the permission to create workspaces, such as
ws-manager
. For more information, see Create Workspaces, Projects, Users and Roles.
Set Cluster Visibility
Select available clusters when you create a workspace
-
Log in to KubeSphere with a user that has the permission to create a workspace, such as
ws-manager
. -
Click Platform in the upper-left corner and select Access Control. In Workspaces from the navigation bar, click Create.
-
Provide the basic information for the workspace and click Next.
-
On the Cluster Settings page, you can see a list of available clusters. Select the clusters that you want to allocate to the workspace and click Create.
-
After the workspace is created, workspace members with necessary permissions can create resources that run on the associated cluster.
Warning
Try not to create resources on the host cluster to avoid excessive loads, which can lead to a decrease in the stability across clusters.
Set cluster visibility after a workspace is created
After a workspace is created, you can allocate additional clusters to the workspace through authorization or unbind a cluster from the workspace. Follow the steps below to adjust the visibility of a cluster.
-
Log in to KubeSphere with a user that has the permission to manage clusters, such as
admin
. -
Click Platform in the upper-left corner and select Cluster Management. Select a cluster from the list to view cluster information.
-
In Cluster Settings from the navigation bar, select Cluster Visibility.
-
You can see the list of authorized workspaces, which means the current cluster is available to resources in all these workspaces.
-
Click Edit Visibility to set the cluster visibility. You can select new workspaces that will be able to use the cluster or unbind it from a workspace.
Make a cluster public
You can check Set as Public Cluster so that platform users can access the cluster, in which they are able to create and schedule resources.
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.