Projects and Multi-cluster Projects

A project in KubeSphere is a Kubernetes namespace, which is used to organize resources into non-overlapping groups. It represents a logical partitioning capability as it divides cluster resources between multiple tenants.

A multi-cluster project runs across clusters, empowering users to achieve high availability and isolate occurring issues to a certain cluster while not affecting your business. For more information, see Multi-cluster Management.

This tutorial demonstrates how to manage projects and multi-cluster projects.

Prerequisites

Projects

Create a project

  1. Go to the Projects page of a workspace and click Create on the Projects tab.

    Note

    • You can change the cluster where the project will be created on the Cluster drop-down menu. The list is only visible after you enable the multi-cluster feature.
    • If you cannot see the Create button, it means no cluster is available to use for your workspace. You need to contact the platform administrator or cluster administrator so that workspace resources can be created in the cluster. To assign a cluster to a workspace, the platform administrator or cluster administrator needs to edit Cluster Visibility on the Cluster Management page.
  2. In the Create Project window that appears, enter a project name and add an alias or description if necessary. Under Cluster, select the cluster where the project will be created (this option does not appear if the multi-cluster feature is not enabled), and click OK.

  3. A project created will display in the list. You can click the project name to go to its Overview page.

Edit a project

  1. Go to your project, navigate to Basic Information under Project Settings and click Manage on the right.

  2. Choose Edit Information from the drop-down menu.

    Note

    The project name cannot be edited. If you want to change other information, see relevant tutorials in the documentation.
  3. To delete a project, choose Delete from the drop-down menu. In the dialog that appears, enter the project name and click OK to confirm the deletion.

Warning

A project cannot be recovered once deleted and resources in the project will be removed.

Multi-cluster Projects

Create a multi-cluster project

  1. Go to the Projects page of a workspace, click the Multi-cluster Projects tab and click Create.

    Note

    • If you cannot see the Create button, it means no cluster is available to use for your workspace. You need to contact the platform administrator or cluster administrator so that workspace resources can be created in the cluster. To assign a cluster to a workspace, the platform administrator or cluster administrator needs to edit Cluster Visibility on the Cluster Management page.
    • Make sure at least two clusters are assigned to your workspace.
  2. In the Create Multi-cluster Project window that appears, enter a project name and add an alias or description if necessary. Under Clusters, select multiple clusters for your project by clicking Add Cluster, and then click OK.

  3. A multi-cluster project created is displayed in the list. Click on the right of a multi-cluster project to select an operation from the drop-down menu:

    • Edit Information: Edit the basic information of a multi-cluster project.
    • Add Cluster: Select a cluster from the drop-down list in the displayed dialog box and click OK to add a cluster to a multi-cluster project.
    • Delete: Delete a multi-cluster project.

Edit a multi-cluster project

  1. Go to your multi-cluster project, navigate to Basic Information under Project Settings and click Manage on the right.

  2. Choose Edit Information from the drop-down menu.

    Note

    The project name cannot be edited. If you want to change other information, see relevant tutorials in the documentation.
  3. To delete a multi-cluster project, choose Delete Project from the drop-down menu. In the dialog that appears, enter the project name and click OK to confirm the deletion.

Warning

A multi-cluster project cannot be recovered once deleted and resources in the project will be removed.

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.