Destination rules are critical resources of Alibaba Cloud Service Mesh (ASM) instances. Destination rules define policies that apply to traffic intended for a service after routing has occurred, such as the policies for service subsets and Envoy proxies. This topic describes how to create, modify, and delete a destination rule.

Create a destination rule

  1. Log on to the ASM console.
  2. In the left-side navigation pane, choose Service Mesh > Mesh Management.
  3. On the Mesh Management page, find the ASM instance that you want to configure. Click the name of the ASM instance or click Manage in the Actions column.
  4. On the details page of the ASM instance, choose Traffic Management > DestinationRule in the left-side navigation pane. On the DestinationRule page, click Create from YAML.
  5. Set the parameters for creating a destination rule by using one of the following methods:
    • On the Create page, select a namespace from the Namespace drop-down list, select a template that is used to create a destination rule from the Template drop-down list, modify the configurations of the template in the YAML code editor, and then click Create.
    • On the Create page, select a namespace from the Namespace drop-down list, select no template from the Template drop-down list, customize the configurations of a destination rule in the YAML code editor, and then click Create.

What to do next

modify a destination rule

On the details page of the ASM instance, choose Traffic Management > DestinationRule in the left-side navigation pane. On the DestinationRule page, find the destination rule that you want to modify and click YAML in the Actions column. In the Edit panel, modify the configurations of the destination rule and click OK.

Delete a destination rule

On the details page of the ASM instance, choose Traffic Management > DestinationRule in the left-side navigation pane. On the DestinationRule page, find the destination rule that you want to delete and click Delete in the Actions column. In the Submit message, click OK.