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

  1. {
  2. "Version": "20190101000000",
  3. "ProductRule": {
  4. "example_product": [
  5. {
  6. "Cond": "req_host_in(\"example.org\")",
  7. "ClusterName": "cluster_example1"
  8. },
  9. {
  10. "Cond": "default_t()",
  11. "ClusterName": "cluster_example2"
  12. }
  13. ]
  14. }
  15. }