Merge pull request #569 from rayzhou2017/project-admin

Update project and multi-cluster project in project admin
This commit is contained in:
KubeSphere CI Bot 2020-11-19 16:00:34 +08:00 committed by GitHub
commit 61f29e7944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,51 +25,52 @@ This chapter demonstrates the basic operations of project administration, such a
1. Go to the **Projects** page of a workspace and click **Create**.
![create-project](/images/docs/project-admin/create-project.jpg)
![create-project](/images/docs/project-admin/create-project.jpg)
{{< notice note >}}
{{< notice note >}}
- You can change the cluster where the project will be created on the **Cluster** drop-down list. 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.
- 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**](../../cluster-administration/cluster-settings/cluster-visibility-and-authorization/) on the **Cluster Management** page.
{{</ notice >}}
{{</ notice >}}
2. In the **Create Project** window that appears, enter a project name and add an alias or description if necessary. 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** to finish.
![create-project-page](/images/docs/project-admin/create-project-page.jpg)
![create-project-page](/images/docs/project-admin/create-project-page.jpg)
3. A project created will display in the list as shown below. You can click the project name to go to its **Overview** page.
![project-list](/images/docs/project-admin/project-list.jpg)
![project-list](/images/docs/project-admin/project-list.jpg)
### Edit project information
1. Navigate to **Basic Info** under **Project Settings** and click **Manage Project** on the right.
![basic-info-page](/images/docs/project-admin/basic-info-page.jpg)
![basic-info-page](/images/docs/project-admin/basic-info-page.jpg)
2. Choose **Edit Info** from the drop-down menu.
{{< notice note >}}
{{< notice note >}}
The project name cannot be edited. If you want to change other information, see relevant chapters in the documentation.
{{</ notice >}}
{{</ notice >}}
### Delete a project
1. Navigate to **Basic Info** under **Project Settings** and click **Manage Project** on the right.
![basic-info-page](/images/docs/project-admin/basic-info-page.jpg)
![basic-info-page](/images/docs/project-admin/basic-info-page.jpg)
2. Choose **Delete Project** from the drop-down menu.
3. In the dialog that appears, enter the project name and click **OK** to confirm the deletion.
{{< notice warning >}}
{{< notice warning >}}
A project cannot be recovered once deleted and resources in the project will be removed as well.
{{</ notice >}}
{{</ notice >}}
## Multi-cluster Projects
@ -77,48 +78,49 @@ A project cannot be recovered once deleted and resources in the project will be
1. Go to the **Projects** page of a workspace, choose **Multi-cluster Projects** and click **Create**.
![create-multicluster-project](/images/docs/project-admin/create-multicluster-project.jpg)
![create-multicluster-project](/images/docs/project-admin/create-multicluster-project.jpg)
{{< notice note >}}
{{< notice 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.
- 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**](../../cluster-administration/cluster-settings/cluster-visibility-and-authorization/) on the **Cluster Management** page.
- Make sure at least two clusters are assigned to your workspace.
{{</ notice >}}
{{</ notice >}}
2. In the **Create Multi-cluster Project** window that appears, enter a project name and add an alias or description if necessary. Select multiple clusters for your project by clicking **Add Cluster**, and click **OK** to finish.
![create-multicluster-project-page](/images/docs/project-admin/create-multicluster-project-page.jpg)
![create-multicluster-project-page](/images/docs/project-admin/create-multicluster-project-page.jpg)
3. A multi-cluster project created will display in the list as shown below. You can click the project name to go to its **Overview** page.
![multicluster-project-list](/images/docs/project-admin/multicluster-project-list.jpg)
![multicluster-project-list](/images/docs/project-admin/multicluster-project-list.jpg)
### Edit multi-cluster project information
1. Navigate to **Basic Info** under **Project Settings** and click **Manage Project** on the right.
![basic-info-multicluster](/images/docs/project-admin/basic-info-multicluster.jpg)
![basic-info-multicluster](/images/docs/project-admin/basic-info-multicluster.jpg)
2. Choose **Edit Info** from the drop-down menu.
{{< notice note >}}
{{< notice note >}}
The project name cannot be edited. If you want to change other information, see relevant chapters in the documentation.
{{</ notice >}}
{{</ notice >}}
### Delete a multi-cluster project
1. Navigate to **Basic Info** under **Project Settings** and click **Manage Project** on the right.
![basic-info-multicluster](/images/docs/project-admin/basic-info-multicluster.jpg)
![basic-info-multicluster](/images/docs/project-admin/basic-info-multicluster.jpg)
2. Choose **Delete Project** from the drop-down menu.
3. In the dialog that appears, enter the project name and click **OK** to confirm the deletion.
{{< notice warning >}}
{{< notice warning >}}
A multi-cluster project cannot be recovered once deleted and resources in the project will be removed as well.
{{</ notice >}}
{{</ notice >}}