edit-icon download-icon

Namespaces

Last Updated: Dec 06, 2018

Overview

During use of Enterprise Distributed Application Service (EDAS), resource (ECS instance) isolation is usually required. EDAS allows you to allocate resources by account so that you can isolate resources using accounts. You can also isolate resources through Virtual Private Cloud (VPC) isolation. However, both of the preceding methods increase the workload in operation difficulty (account switching) and implementation cost (multiple VPCs needed) and cannot balance resource isolation with unified management. Resources cannot be isolated over classic networks.

To solve this problem, we provide EDAS with a new function: Namespace. On classic networks or VPCs in a region, one namespace corresponds to one environment (including one or more clusters), and different namespaces are logically isolated from each other by nature. Multiple namespaces can be created for one account. Namespaces help you completely isolate resources in different environments from each other, and you can use one account to manage them in unified mode.

Scenarios

A namespace is mainly used to isolate resources. The procedure is as follows:

  1. Create a namespace
  2. Import an ECS instance
  3. Create an application

Namespace usage scenario process

After the preceding actions are finished, resources are isolated.

In addition, you can add or transfer cluster hosts based on namespaces in a region. For details about actions, see Create ECS clusters and Cluster management. With resources isolated, unified management can be implemented using one account.

Create a namespace

  1. Log on to the EDAS console.

  2. In the left-side navigation pane, Click Namespaces.

  3. On the Namespaces page, select Region, and then click Create Namespace in the upper-right corner.

  4. In the Create Namespace dialog box, set the Namespace Name(required), Namespace ID (required), and description, and click OK.

    NOTE: The prefix of namespace ID is determined based on the specified region (target region) and is not editable.Only the custom part is editable.

    Create a namespace

Edit a namespace

  1. Click Edit in the Action column on the Namespaces page.

  2. In the Edit Namespace dialog box, edit the Namespace Name and description, and then click OK.

    NOTE: The namespace ID cannot be changed.

Delete a namespace

The following conditions must be met before you delete a namespace:

  • No ECS instances exist under the namespace.
  • No clusters exist under the namespace.
  1. Click Delete in the Action column on the Namespaces page.

  2. In the dialog box displayed, confirm the namespace name and then click Delete.

Thank you! We've received your feedback.