Destination rules are critical resources of Service Mesh (ASM) instances for traffic routing. Destination rules define policies that apply to traffic intended for a service after routing has occurred. Destination rules specify configurations for load balancing, connection pool size from the sidecar, and outlier detection settings to detect and remove unhealthy hosts from the load balancing pool. This topic describes how to create, modify, and delete a destination rule.
Create a destination rule
-
Log on to the ASM console. In the left-side navigation pane, choose .
-
On the Mesh Management page, click the name of the desired ASM instance, and then choose from the left-side navigation pane.
For more information about configuration examples and descriptions, see Destination Rule(Destination Rule)CRDCRD Reference. You can use the following methods to create a destination rule:
-
Method 1: Click Create, configure the parameters on the Create page, and then click Create.
-
Method 2: Click Create from YAML, select a Namespaces and Scenario Template, modify the configuration in the YAML editor, and then click Create.
-
Related operations
After creating a destination rule, you can manage it on the DestinationRule page by using the options in the Operation column.
-
View or modify YAML: Click View YAML for the desired rule. In the Edit dialog box, change the configuration and click OK.
-
Manage versions: Click Version for the desired destination rule. In the Version dialog box, you can revert to a previous version by clicking Rollback.
-
Delete a destination rule: Click Delete for the rule you want to remove. In the Confirm dialog box, click OK.
ImportantAfter you delete a destination rule, policies such as load balancing, circuit breaking, and throttling may be affected, and unexpected issues may occur. Exercise caution when you delete a destination rule.