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.
A namespace is mainly used to isolate resources. The procedure is as follows:
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.
Log on to the EDAS console.
In the left-side navigation pane, Click Namespaces.
On the Namespaces page, select Region, and then click Create Namespace in the upper-right corner.
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.
Click Edit in the Action column on the Namespaces page.
In the Edit Namespace dialog box, edit the Namespace Name and description, and then click OK.
NOTE: The namespace ID cannot be changed.
The following conditions must be met before you delete a namespace:
- No ECS instances exist under the namespace.
- No clusters exist under the namespace.
Click Delete in the Action column on the Namespaces page.
In the dialog box displayed, confirm the namespace name and then click Delete.