Namespaces
Namespaces enable division of cluster resources among multiple users through quotas. Namespaces are suited for environments in which multiple users spread across multiple teams or projects. A namespace created on the MCP console is a multi-cluster namespace. After it is created, a namespace with the same name will be created in all clusters that join the MCP instance.
- You can modify the resource quota of a multi-cluster namespace on the cluster console. The modified quota applies only to the current cluster. The namespace quota in other clusters does not change.
- A multi-cluster namespace will be created again after it is deleted from the cluster console.
- The namespaces mentioned in this section are multi-cluster namespaces.
Creating a Namespace
- Log in to the MCP console. In the navigation pane, choose Resource Management > Namespaces. Click Create Namespace.
- Set namespace parameters based on Table 1.
Table 1 Parameters for creating a namespace Parameter
Description
Namespace Name
Name of a namespace, which must be unique in a cluster.
Tag
Tag in the key-value pair format. Add tags to namespaces and define different attributes. You can learn the characteristics of each namespace through these tags.
Annotations
Annotation in the key-value pair format. Add annotations to the namespace.
Description
Description of the namespace.
- Click Create after the configuration is complete.
Using Namespaces
Namespaces can be used when creating Services, ingresses, domain name access, and PVCs. The following describes how a namespace is used during creation of a Service.
- Log in to the MCP console. In the navigation pane, choose Resource Management > Network Management.
- Click Create Service.
- Select the namespace to which the Service resides.
Figure 1 Selecting a namespace
Deleting a Namespace
Deleting a multi-cluster namespace will delete all data resources related to it. Exercise caution when performing this operation.
- Log in to the MCP console. In the navigation pane, choose Resource Management > Namespaces.
- In the namespace list, select the target namespace and click Delete in the Operation column.
Figure 2 Deleting a namespace
Follow the prompts to delete the namespace. The default namespace cannot be deleted.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot