Skip to content

Instantly share code, notes, and snippets.

@rvennam
Created April 22, 2024 15:23
Show Gist options
  • Save rvennam/03d5f561fe1c0fc8f06b546957a2b87c to your computer and use it in GitHub Desktop.
Save rvennam/03d5f561fe1c0fc8f06b546957a2b87c to your computer and use it in GitHub Desktop.
- ignorePortInHostMatching: true
name: "9080"
validateClusters: false
virtualHosts:
- domains:
- '*'
includeRequestAttemptCount: true
name: allow_any
routes:
- match:
prefix: /
name: allow_any
route:
cluster: PassthroughCluster
maxGrpcTimeout: 0s
timeout: 0s
- domains:
- details.default.svc.cluster.local:9080
- details:9080
- details.default.svc:9080
- details.default:9080
- 10.116.2.89:9080
includeRequestAttemptCount: true
name: details.default.svc.cluster.local:9080
routes:
- decorator:
operation: details.default.svc.cluster.local:9080/*
match:
prefix: /
name: default
route:
cluster: outbound|9080||details.default.svc.cluster.local
maxGrpcTimeout: 0s
retryPolicy:
hostSelectionRetryMaxAttempts: "5"
numRetries: 2
retriableStatusCodes:
- 503
retryHostPredicate:
- name: envoy.retry_host_predicates.previous_hosts
typedConfig:
'@type': type.googleapis.com/envoy.extensions.retry.host.previous_hosts.v3.PreviousHostsPredicate
retryOn: connect-failure,refused-stream,unavailable,cancelled,retriable-status-codes
timeout: 0s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment