Skip to content

Commit 244aa01

Browse files
authored
Merge pull request #324 from 3scale-sre/feat/local-setup-envoy-improvements
Feat/local-setup envoy improvements
2 parents 2b02ecf + 3c30192 commit 244aa01

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

config/local-setup/workloads/apicast.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
endpoints:
4545
- marin3rSidecar:
4646
dynamicConfigs:
47-
gateway_cluster:
47+
gateway_cluster_production:
4848
cluster:
4949
host: 127.0.0.1
5050
isHttp2: false
@@ -78,7 +78,7 @@ spec:
7878
- match:
7979
prefix: /
8080
route:
81-
cluster: gateway_cluster
81+
cluster: gateway_cluster_production
8282
timeout: 30s
8383
elasticLoadBalancerConfig:
8484
proxyProtocol: false
@@ -125,7 +125,7 @@ spec:
125125
strategy: Marin3rSidecar
126126
marin3rSidecar:
127127
dynamicConfigs:
128-
gateway_cluster:
128+
gateway_cluster_staging:
129129
cluster:
130130
host: 127.0.0.1
131131
isHttp2: false
@@ -165,7 +165,7 @@ spec:
165165
- match:
166166
prefix: /
167167
route:
168-
cluster: gateway_cluster
168+
cluster: gateway_cluster_staging
169169
timeout: 30s
170170
elasticLoadBalancerConfig:
171171
proxyProtocol: false

config/local-setup/workloads/mt-ingress.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,15 @@ spec:
224224
route:
225225
cluster: system_app
226226
timeout: 120s
227+
retry_policy:
228+
retry_on: connect-failure,reset,refused-stream,unavailable,cancelled,retriable-status-codes
229+
retriable_status_codes:
230+
- 503
231+
num_retries: 10
232+
retry_back_off:
233+
base_interval: 1s
234+
retry_host_predicate:
235+
- name: envoy.retry_host_predicates.previous_hosts
236+
typed_config:
237+
"@type": type.googleapis.com/envoy.extensions.retry.host.previous_hosts.v3.PreviousHostsPredicate
238+
host_selection_retry_max_attempts: 5

0 commit comments

Comments
 (0)