github.com/polarismesh/polaris@v1.17.8/test/data/xds/gateway.dump.yaml (about)

     1  clusters:
     2  - circuitBreakers:
     3      thresholds:
     4      - maxConnections: 4.294967295e+09
     5        maxPendingRequests: 4.294967295e+09
     6        maxRequests: 4.294967295e+09
     7        maxRetries: 4.294967295e+09
     8    connectTimeout: 5s
     9    lbPolicy: CLUSTER_PROVIDED
    10    name: PassthroughCluster
    11    type: ORIGINAL_DST
    12  - connectTimeout: 5s
    13    edsClusterConfig:
    14      edsConfig:
    15        ads: {}
    16        resourceApiVersion: V3
    17      serviceName: service-a
    18    name: service-a
    19    type: EDS
    20  endpoints:
    21  - clusterName: service-a
    22    endpoints:
    23    - lbEndpoints:
    24      - endpoint:
    25          address:
    26            socketAddress:
    27              address: 172.17.1.2
    28              portValue: 80
    29        healthStatus: HEALTHY
    30        loadBalancingWeight: 80
    31        metadata:
    32          filterMetadata:
    33            envoy.lb:
    34              polarismesh.cn/tls-mode: strict
    35            envoy.transport_socket_match:
    36              acceptMTLS: "true"
    37      - endpoint:
    38          address:
    39            socketAddress:
    40              address: 172.17.1.3
    41              portValue: 80
    42        healthStatus: UNHEALTHY
    43        loadBalancingWeight: 80
    44        metadata:
    45          filterMetadata:
    46            envoy.lb: {}
    47      - endpoint:
    48          address:
    49            socketAddress:
    50              address: 172.17.1.4
    51              portValue: 80
    52        healthStatus: UNHEALTHY
    53        loadBalancingWeight: 80
    54        metadata:
    55          filterMetadata:
    56            envoy.lb: {}
    57  listeners:
    58  - address:
    59      socketAddress:
    60        address: 0.0.0.0
    61        portValue: 15001
    62    defaultFilterChain:
    63      filters:
    64      - name: envoy.filters.network.tcp_proxy
    65        typedConfig:
    66          '@type': type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy
    67          cluster: PassthroughCluster
    68          statPrefix: PassthroughCluster
    69      name: PassthroughFilterChain
    70    filterChains:
    71    - filters:
    72      - name: envoy.filters.network.http_connection_manager
    73        typedConfig:
    74          '@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
    75          httpFilters:
    76          - name: envoy.filters.http.local_ratelimit
    77            typedConfig:
    78              '@type': type.googleapis.com/envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit
    79              statPrefix: http_local_rate_limiter
    80          - name: envoy.filters.http.router
    81          rds:
    82            configSource:
    83              ads: {}
    84              resourceApiVersion: V3
    85            routeConfigName: polaris-router
    86          statPrefix: http
    87    listenerFilters:
    88    - name: envoy.filters.listener.original_dst
    89    name: listener_15001
    90  routers:
    91  - name: polaris-router
    92    validateClusters: false
    93    virtualHosts:
    94    - domains:
    95      - '*'
    96      name: gateway-virtualhost
    97      routes:
    98      - match:
    99          path: /service-a
   100        route:
   101          weightedClusters:
   102            clusters:
   103            - metadataMatch:
   104                filterMetadata:
   105                  envoy.lb:
   106                    aa: "222"
   107              name: service-a
   108              weight: 100
   109            totalWeight: 100
   110      - match:
   111          path: /service-b
   112        route:
   113          weightedClusters:
   114            clusters:
   115            - metadataMatch:
   116                filterMetadata:
   117                  envoy.lb:
   118                    aa: "222"
   119              name: service-b
   120              weight: 100
   121            totalWeight: 100
   122      - match:
   123          prefix: /
   124        route:
   125          cluster: PassthroughCluster