Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 948 Bytes

route_rule.data.md

File metadata and controls

30 lines (25 loc) · 948 Bytes

Introduction

route_rule.data records route rule config for each product.

Configuration

Config Item Type Description
Version String Time of generating config file
ProductRule Struct Route rules for each product. Key is product name, Value is a ordered list of route rules. Route rule include:
- Cond: condition expression
- ClusterName: destination cluster name

Example

{
    "Version": "20190101000000",
    "ProductRule": {
        "example_product": [
            {
                "Cond": "req_host_in(\"example.org\")",
                "ClusterName": "cluster_example1"
            },
            {
                "Cond": "default_t()",
                "ClusterName": "cluster_example2"
            }
        ]
    }
}