Namespace Management
Namespaces isolate configurations in different environments. For example, resources (such as configurations and services) in the development and test environments are isolated from those in the production environment. Different namespaces can have the same group or data ID.
Precautions
- The namespace ID is entered in the SDK connected to a Nacos engine. The namespace name is only the identifier used for viewing on the console.
- If your service SDK uses a namespace ID that is not created on the Nacos server for service registration and discovery, the service can be registered and discovered, but cannot be viewed on the service management page of the registry/configuration center. You need to create the corresponding namespace before viewing the service. For details, see Creating a Namespace.
Prerequisites
You have created a Nacos engine instance. For details, see Creating a Registry/Configuration Center.
Creating a Namespace
When an instance is created, a default namespace public (reserved space) is automatically generated. This namespace cannot be edited or deleted. You can use this namespace to isolate resources and services. Up to 50 namespaces can be created.
- Log in to CSE.
- In the left navigation pane, choose Registry/Configuration Center.
- Click the target Nacos instance.
- Choose Namespaces and click Create Namespace.
- In the displayed dialog box, set the parameters as follows. Configuration items marked with an asterisk (*) are mandatory.
Table 1 Namespace parameters Parameter
Description
*Namespace
The namespace name can be customized and can contain a maximum of 128 characters except @ # $% ^ & *.
Namespace ID
Enter a maximum of 128 characters. Use only uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_). The namespace ID must be unique.
NOTE:If no ID is entered during creation, the system randomly generates an ID.
- Click OK.
Editing a Namespace
- Log in to CSE.
- In the left navigation pane, choose Registry/Configuration Center.
- Click the target Nacos instance.
- Choose Namespaces.
- Click Edit in the Operation column of the namespace to be edited to edit the namespace name.
The automatically generated namespace public cannot be edited.
- Click OK.
Deleting a Namespace
- Log in to CSE.
- In the left navigation pane, choose Registry/Configuration Center.
- Click the target Nacos instance.
- Choose Namespaces.
- Click Delete in the Operation column of the namespace to be deleted.
- In the displayed dialog box, click OK.
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