Enterprise Distributed Application Service (EDAS) provides the tag management feature. This feature allows you to create tags and use the tags to identify and classify applications and clusters based on your business requirements. This facilitates resource filtering and aggregation. This topic describes how to add tags for Kubernetes clusters and how to use tags to filter Kubernetes clusters.
Background information
Tags are used to identify resources. You can use tags to classify, filter, and aggregate resources that have the same characteristics from different dimensions. This simplifies resource management. You can add one or more tags to each resource.
If you have deployed a large number of resources, such as applications, Kubernetes clusters, and Elastic Compute Service (ECS) instances, in EDAS, you can use tags to group these resources. This way, you can use tags to filter resources and perform operations on multiple resources at a time.
Tags can be used to indicate different environments.
Test environment: You can specify a key-value pair such as Environment=TEST to create a tag and add the tag for resources in the test environment.
Development environment: You can specify a key-value pair such as Environment=DEV to create a tag and add the tag for resources in the development environment.
Production environment: You can specify a key-value pair such as Environment=PROD to create a tag and add the tag for resources in the production environment.
Tags can be used to indicate different teams or projects.
Team 1 or Project 1: You can specify a key-value pair such as Team=team1 to create a tag and add the tag for resources that belong to Team 1 or Project 1.
Team 2 or Project 2: You can specify a key-value pair such as Team=team2 to create a tag and add the tag for resources that belong to Team 2 or Project 2.
Create and add a tag for a resource
Log on to the EDAS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region where the cluster that you want to manage is deployed. On the Container Service Kubernetes Cluster page, select the microservices namespace to which the cluster belongs from the Microservices Namespace drop-down list.
Find the cluster that you want to manage, click the icon in the Tag column and then click Edit Tags.
In the Edit Tags dialog box, click Create, configure the Tag Key and Tag Value parameters, and then click OK.
NoteA tag consists of a key-value pair, which includes a tag key and a tag value. When you create a tag, take note of the following rules:
The tag key cannot start with acs:, http://, or https://.
The tag key or tag value can be up to 128 characters in length and can contain letters, digits, hyphens (-), commas (,), asterisks (*), forward slashes (/), question marks (?), and colons (:).
The tag key of tags that are added for the same resource must be unique.
You can add up to 20 tags for each cluster.
Filter resources
On the Container Service Kubernetes Cluster page, click Tag.
In the dialog box that appears, configure the Tag Key and Tag Value parameters and click Search.
The resources for| which the specified tag is added appear.