Updated on 2024-02-29 GMT+08:00

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.

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.

  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos instance.
  4. Choose Namespaces and click Create Namespace.
  5. 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

    Mandatory. Enter a maximum of 128 characters except @#$%^&*.

    Namespace ID

    Optional. Enter a maximum of 128 characters, including uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_). The namespace ID must be unique.

  6. Click OK.

Editing a Namespace

  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos instance.
  4. Choose Namespaces.
  5. 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.

  6. Click OK.

Deleting a Namespace

  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos instance.
  4. Choose Namespaces.
  5. Click Delete in the Operation column of the namespace to be deleted.
  6. In the displayed dialog box, click OK.