Adding a Label to an Application Component Instance
Labels are attached to applications using key-value pairs. After creating labels for application components, you can manage and select application components by labels. You can add labels to multiple application components or a specified application component.
As shown in the following figure, three labels release, env, and role are defined for the application components APP1, APP2, and APP3. The values of these labels vary with application components.
If applications labeled with role/frontend are selected during application scheduling or use of other functions, APP1 and APP2 are selected. For details, see Setting Scheduling Policies for Application Component Instances.
Key-Value Pair Format Requirements
Key contains a maximum of 15 characters, including digits, uppercase letters, lowercase letters, and underscores (_). It cannot start with an underscore (_) or end with an underscore (_).
Value contains 1 to 63 characters, including uppercase letters, lowercase letters, digits, hyphens (-), underscores (_), and periods (.). It must start and end with a lowercase letter or digit.
Procedure
- Log in to ServiceStage and choose Application Management > Application List to view all applications.
- Click an application to go to the application details page. On the Environment View tab page, you can view the deployed application components.
- Click a deployed application component. On the displayed application component instance details page, choose Overview and then click Manage Label.
- Click Add Label, set Key/Value, and click Save.
The new label cannot be the same as any of system labels, including os.architecture, os.name, os.version, and supportContainer.
Last Article: Maintaining an Application Component Instance
Next Article: Configuring a Customize Domain Name
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.