Skip to content

Instantly share code, notes, and snippets.

@thedebugger
Last active June 16, 2022 17:42
Show Gist options
  • Save thedebugger/0a1a03c8f2b3d718b2efbe4eae4bd782 to your computer and use it in GitHub Desktop.
Save thedebugger/0a1a03c8f2b3d718b2efbe4eae4bd782 to your computer and use it in GitHub Desktop.
helloserver-max-pending-req envoy filter
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: helloserver-mesh-max-pending
namespace: asm-test
spec:
workloadSelector:
matchLabels:
app: helloserver
host: hellosvc.asm-test.svc.cluster.local
trafficPolicy:
connectionPool:
http:
http1MaxPendingRequests: 1
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: helloserver-max-pending-req
namespace: asm-test
spec:
workloadSelector:
labels:
app: helloserver
configPatches:
- applyTo: CLUSTER
match:
context: SIDECAR_INBOUND
cluster:
portNumber: 8080
name: "inbound|8080||"
patch:
operation: MERGE
value:
circuit_breakers:
thresholds:
- max_pending_requests: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment