istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/integration/telemetry/policy/testdata/enable_envoy_local_ratelimit.yaml (about)

     1  apiVersion: networking.istio.io/v1alpha3
     2  kind: EnvoyFilter
     3  metadata:
     4    name: filter-local-ratelimit-svc
     5    namespace: istio-system
     6  spec:
     7    workloadSelector:
     8      labels:
     9        app: clt
    10    configPatches:
    11      - applyTo: HTTP_FILTER
    12        patch:
    13          operation: INSERT_BEFORE
    14          value:
    15            name: envoy.filters.http.local_ratelimit
    16            typed_config:
    17              "@type": type.googleapis.com/udpa.type.v1.TypedStruct
    18              type_url: type.googleapis.com/envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit
    19              value:
    20                stat_prefix: http_local_rate_limiter
    21                token_bucket:
    22                  max_tokens: 1
    23                  tokens_per_fill: 1
    24                  fill_interval: 600s
    25                filter_enabled:
    26                  runtime_key: local_rate_limit_enabled
    27                  default_value:
    28                    numerator: 100
    29                    denominator: HUNDRED
    30                filter_enforced:
    31                  runtime_key: local_rate_limit_enforced
    32                  default_value:
    33                    numerator: 100
    34                    denominator: HUNDRED
    35                response_headers_to_add:
    36                  - append: false
    37                    header:
    38                      key: x-local-rate-limit
    39                      value: 'true'