File: envoy_complex_config.yaml

package info (click to toggle)
python-azure 20250603%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 851,724 kB
  • sloc: python: 7,362,925; ansic: 804; javascript: 287; makefile: 195; sh: 145; xml: 109
file content (372 lines) | stat: -rw-r--r-- 13,938 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# cspell:disable
static_resources:
  listeners:
  - name: admin-listener
    address:
      socket_address:
        protocol: TCP
        address: "0.0.0.0"
        port_value: 8080
    filter_chains:
    - filters:
      - name: envoy.filters.network.http_connection_manager
        typed_config:
          "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
          proxy_status_config:
            set_recommended_response_code: true
            use_node_id: true
          stat_prefix: ingress_http
          route_config:
            name: local_route
            virtual_hosts:
            - name: local_service
              domains:
              - "*"
              routes:
              - match:
                  path: "/ready"
                route:
                  cluster: admin_port_cluster
              - match:
                  path: "/metrics"
                route:
                  cluster: admin_port_cluster
                  prefix_rewrite: "/stats/prometheus"
              - match:
                  prefix: "/"
                direct_response:
                  status: 404
          http_filters:
          - name: envoy.filters.http.router
            typed_config:
              "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
              # Allow passing `x-envoy-expected-rq-timeout-ms`
              respect_expected_rq_timeout: true
  - name: main-listener
    address:
      socket_address:
        address: 0.0.0.0
        port_value: 5100
    filter_chains:
    - filters:
      - name: envoy.filters.network.http_connection_manager
        typed_config:
          "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
          access_log:
            - name: envoy.access_loggers.stream
              typed_config:
                "@type": type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog
                log_format:
                  json_format:
                    access_log_type: "%ACCESS_LOG_TYPE%"
                    bytes_received: "%BYTES_RECEIVED%"
                    bytes_sent: "%BYTES_SENT%"
                    connection_termination_details: "%CONNECTION_TERMINATION_DETAILS%"
                    downstream_transport_failure_reason: "%DOWNSTREAM_TRANSPORT_FAILURE_REASON%"
                    duration: "%DURATION%"
                    protocol: "%PROTOCOL%"
                    req_authority: "%REQ(:AUTHORITY)%"
                    req_duration: "%REQUEST_DURATION%"
                    req_line: "%REQ(X-ENVOY-ORIGINAL-METHOD?:METHOD)% %REQ(:SCHEME)%://%REQ(:AUTHORITY)%%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%"
                    req_method: "%REQ(:METHOD)%"
                    req_content_length: "%REQ(CONTENT-LENGTH)%"
                    req_path: "%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%"
                    request_id: "%REQ(X-REQUEST-ID)%"
                    req_user_agent: "%REQ(USER-AGENT)%"
                    resp_cache_control: "%RESP(CACHE-CONTROL)%"
                    resp_code_details: "%RESPONSE_CODE_DETAILS%"
                    resp_code: "%RESPONSE_CODE%"
                    resp_content_type: "%RESP(CONTENT-TYPE)%"
                    resp_flags: "%RESPONSE_FLAGS%"
                    resp_tx_duration: "%RESPONSE_TX_DURATION%"
                    resp_upstream_service_time: "%RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)%"
                    start_time: "%START_TIME%"
                    upstream_host: "%UPSTREAM_HOST%"
                    upstream_peer_tls_issuer: "%UPSTREAM_PEER_ISSUER%"
                    upstream_peer_tls_subject: "%UPSTREAM_PEER_SUBJECT%"
                    upstream_remote_address: "%UPSTREAM_REMOTE_ADDRESS%"
                    upstream_request_attempt_count: "%UPSTREAM_REQUEST_ATTEMPT_COUNT%"
                    upstream_tls_cipher: "%UPSTREAM_TLS_CIPHER%"
                    upstream_transport_failure_reason: "%UPSTREAM_TRANSPORT_FAILURE_REASON%"
                    x_datadog_parent_id: "%REQ(X-DATADOG-PARENT-ID)%"
                    x_datadog_sampling_priority: "%REQ(X-DATADOG-SAMPLING-PRIORITY)%"
                    x_datadog_trace_id: "%REQ(X-DATADOG-TRACE-ID)%"
          stat_prefix: router_http
          scheme_header_transformation:
            scheme_to_overwrite: https
          strip_any_host_port: true
          proxy_status_config:
            set_recommended_response_code: true
            use_node_id: true
          common_http_protocol_options:
            max_connection_duration: 900s
          drain_timeout: 330s
          stream_idle_timeout: 30s
          route_config:
            name: local_route
            response_headers_to_add:
              - header:
                  key: "via"
                  value: "%ENVIRONMENT(POD_NAME)%"
            virtual_hosts:
            - name: local_account
              domains:
              - account.documents.azure.com
              routes:
              - match:
                  prefix: "/"
                route:
                  cluster: account
                  timeout: 0.01s
                  retry_policy:
                    retry_on: "connect-failure,refused-stream,reset"
                    per_try_timeout: 0.01s
                    num_retries: 3
            - name: local_account-eastus2euap
              domains:
              - account-eastus2euap.documents.azure.com
              routes:
              - match:
                  prefix: "/"
                route:
                  cluster: account-eastus2euap
                  timeout: 0.01s
                  retry_policy:
                    retry_on: "connect-failure,refused-stream,reset"
                    per_try_timeout: 0.01s
                    num_retries: 3            
            - name: local_account-centraluseuap
              domains:
              - account-centraluseuap.documents.azure.com
              routes:
              - match:
                  prefix: "/"
                route:
                  cluster: account-centraluseuap
                  timeout: 300s
                  retry_policy:
                    retry_on: "connect-failure,refused-stream,reset"
                    per_try_timeout: 300s
                    num_retries: 3                    
            - name: local_heise            
              domains:
              - www.heise.de
              routes:
              - match:
                  prefix: "/"
                route:
                  cluster: heise
                  timeout: 300s
                  retry_policy:
                    retry_on: "connect-failure,refused-stream,reset"
                    per_try_timeout: 300s
                    num_retries: 3        
          http_filters:
          - name: envoy.filters.http.router
            typed_config:
              "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
  clusters:
  - name: account-eastus2euap
    type: STRICT_DNS
    lb_policy: LEAST_REQUEST
    dns_lookup_family: V4_ONLY
    connect_timeout: 0.005s
    load_assignment:
      cluster_name: account-eastus2euap
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                protocol: TCP
                address: account-eastus2euap.documents.documents.azure.com
                port_value: 443
    circuit_breakers:
      thresholds:
        priority: DEFAULT
        max_connections: 10000
        max_pending_requests: 10000
        max_requests: 10000
        retry_budget:
          budget_percent:
            value: 10.0
          min_retry_concurrency: 10
        track_remaining: true
    typed_extension_protocol_options:
      envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
        "@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
        common_http_protocol_options:
          max_connection_duration: 120s
        upstream_http_protocol_options:
          auto_sni: true
          auto_san_validation: true
        auto_config:
          http2_protocol_options:
            max_concurrent_streams: 3
            initial_stream_window_size: 1048576
    transport_socket:
      name: envoy.transport_sockets.tls # required to communicate in HTTPS
      typed_config:
        "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
        common_tls_context:
          alpn_protocols: ["http/1.1"]
          validation_context:
            trust_chain_verification: ACCEPT_UNTRUSTED
  - name: account
    type: STRICT_DNS
    lb_policy: LEAST_REQUEST
    dns_lookup_family: V4_ONLY
    connect_timeout: 0.001s
    load_assignment:
      cluster_name: account
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                protocol: TCP
                address: account.documents.documents.azure.com
                port_value: 443
    circuit_breakers:
      thresholds:
        priority: DEFAULT
        max_connections: 10000
        max_pending_requests: 10000
        max_requests: 10000
        retry_budget:
          budget_percent:
            value: 10.0
          min_retry_concurrency: 10
        track_remaining: true
    typed_extension_protocol_options:
      envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
        "@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
        common_http_protocol_options:
          max_connection_duration: 120s
        upstream_http_protocol_options:
          auto_sni: true
          auto_san_validation: true
        auto_config:
          http2_protocol_options:
            max_concurrent_streams: 3
            initial_stream_window_size: 1048576
    transport_socket:
      name: envoy.transport_sockets.tls # required to communicate in HTTPS
      typed_config:
        "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
        common_tls_context:
          alpn_protocols: ["http/1.1"]
          validation_context:
            trust_chain_verification: ACCEPT_UNTRUSTED      
  - name: account-centraluseuap
    type: STRICT_DNS
    lb_policy: LEAST_REQUEST
    dns_lookup_family: V4_ONLY
    connect_timeout: 5s
    load_assignment:
      cluster_name: account-centraluseuap
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                protocol: TCP
                address: account-centraluseuap.documents.documents.azure.com
                port_value: 443
    circuit_breakers:
      thresholds:
        priority: DEFAULT
        max_connections: 10000
        max_pending_requests: 10000
        max_requests: 10000
        retry_budget:
          budget_percent:
            value: 10.0
          min_retry_concurrency: 10
        track_remaining: true
    typed_extension_protocol_options:
      envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
        "@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
        common_http_protocol_options:
          max_connection_duration: 120s
        upstream_http_protocol_options:
          auto_sni: true
          auto_san_validation: true
        auto_config:
          http2_protocol_options:
            max_concurrent_streams: 3
            initial_stream_window_size: 1048576
    transport_socket:
      name: envoy.transport_sockets.tls # required to communicate in HTTPS
      typed_config:
        "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
        common_tls_context:
          alpn_protocols: ["http/1.1"]
          validation_context:
            trust_chain_verification: ACCEPT_UNTRUSTED                
  - name: heise
    type: STRICT_DNS
    dns_lookup_family: V4_ONLY
    lb_policy: LEAST_REQUEST
    connect_timeout: 5s
    load_assignment:
      cluster_name: heise
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                protocol: TCP
                address: www.heise.de
                port_value: 443
    circuit_breakers:
      thresholds:
        priority: DEFAULT
        max_connections: 10000
        max_pending_requests: 10000
        max_requests: 10000
        retry_budget:
          budget_percent:
            value: 10.0
          min_retry_concurrency: 10
        track_remaining: true
    typed_extension_protocol_options:
      envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
        "@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
        common_http_protocol_options:
          max_connection_duration: 120s
        upstream_http_protocol_options:
          auto_sni: true
          auto_san_validation: true
        auto_config:
          http2_protocol_options:
            max_concurrent_streams: 3
            initial_stream_window_size: 1048576
    transport_socket:
      name: envoy.transport_sockets.tls # required to communicate in HTTPS
      typed_config:
        "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
        common_tls_context:
          alpn_protocols: ["http/1.1"] 
          validation_context:
            trust_chain_verification: ACCEPT_UNTRUSTED
  - name: admin_port_cluster
    connect_timeout: 0.25s
    type: LOGICAL_DNS
    load_assignment:
      cluster_name: admin_port_cluster
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                protocol: TCP
                address: "127.0.0.1"
                port_value: 9091
admin:
  address:
    socket_address:
      address: 127.0.0.1
      port_value: 9091