Skip to content

Instantly share code, notes, and snippets.

@sbehara1
Last active June 3, 2019 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbehara1/95a0a6b90aee8db74cf8111b00bc5685 to your computer and use it in GitHub Desktop.
Save sbehara1/95a0a6b90aee8db74cf8111b00bc5685 to your computer and use it in GitHub Desktop.
Implement Istio Circuit Breaker Outlier Detection to automatically identify the misbehaving pod and route traffic to healthy pods.
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: serviceB
spec:
host: serviceB
subsets:
- labels:
version: v1
name: serviceB-v1
trafficPolicy:
connectionPool:
http: {}
tcp: {}
loadBalancer:
simple: RANDOM
outlierDetection:
baseEjectionTime: 20s
consecutiveErrors: 3
interval: 10s
maxEjectionPercent: 100
- labels:
version: v2
name: serviceB-v2
trafficPolicy:
connectionPool:
http: {}
tcp: {}
loadBalancer:
simple: RANDOM
outlierDetection:
baseEjectionTime: 20s
consecutiveErrors: 3
interval: 10s
maxEjectionPercent: 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment