You can use namespaces to isolate resources and services.

Scenarios

For example, you have three environments in a Virtual Private Cloud (VPC), which are used for application development, testing, and production, respectively. You can create the Dev, Test, and Prod namespaces respectively for these environments. If you create clusters and deploy applications in the three namespaces, the resources, applications, and services in a namespace are isolated from the resources, applications, and services in the other namespaces. Therefore, you cannot call services or push configurations across these namespaces.

Create a namespace

  1. Log on to the EDAS console.
  2. In the left-side navigation pane, choose Application Management > Namespaces.
  3. On the Namespaces page, select a region in top navigation bar and click Create Namespace in the upper-right corner.
  4. In the Create Namespace dialog box, set Namespace Name (required), Namespace ID (required), and Description, and then click Create.
    • The prefix of Namespace ID is determined by the selected region and cannot be edited, and only the custom part can be set.
    • To interconnect the on-premises and off-premises applications, you can enable Allow Remote Debugging in the Edit Namespace dialog box for the namespace where the application is located. For more information about how to interconnect on-premises and off-premises applications, see Configure an EDAS application to interconnect with off-premises applications.

Select the default namespace

When you create an application in Enterprise Distributed Application Service (EDAS), you can select Default next to the Namespace field. This indicates that the application does not use any namespaces to isolate resources and services.

If you select the default namespace of a region in the application list, the selected applications do not belong to any namespaces.

Edit a namespace

  1. Click Edit in the Actions column for a namespace in the namespace list.
  2. In the Edit Namespace dialog box that appears, modify Namespace Name and Description, and then click OK.
    Notice You cannot change the namespace ID or namespace type.

Delete a namespace

You can delete a namespace if this namespace meets following conditions:

  • The namespace does not contain any clusters.
  • The namespace does not contain any Elastic Compute Service (ECS) instances.
  1. Click Delete in the Actions column for a namespace in the namespace list.
  2. In the Tip dialog box that appears, the "Are you sure you want to delete the namespace?" message appears. Click Delete.