-
Notifications
You must be signed in to change notification settings - Fork 0
/
destination-rule.yaml
59 lines (58 loc) · 1.27 KB
/
destination-rule.yaml
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
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: backend
namespace: demo
spec:
host: backend
subsets:
- name: v1
labels:
app.kubernetes.io/name: backend
app.kubernetes.io/version: v1
- name: v2
labels:
app.kubernetes.io/name: backend
app.kubernetes.io/version: v2
# # Circuit Breaker
# trafficPolicy:
# connectionPool:
# http:
# http1MaxPendingRequests: 1
# maxRequestsPerConnection: 1
# maxRetries: 0
# outlierDetection:
# consecutive5xxErrors: 1
# interval: 30s
# baseEjectionTime: 1m
# maxEjectionPercent: 100
# ---
# apiVersion: networking.istio.io/v1alpha3
# kind: DestinationRule
# metadata:
# name: bar
# namespace: demo
# spec:
# host: backend-v1
# subsets:
# - name: v1
# labels:
# app.kubernetes.io/name: backend
# app.kubernetes.io/version: v1
# - name: v2
# labels:
# app.kubernetes.io/name: backend
# app.kubernetes.io/version: v2
# ---
# apiVersion: networking.istio.io/v1alpha3
# kind: DestinationRule
# metadata:
# name: baz
# namespace: demo
# spec:
# host: backend-v2
# subsets:
# - name: v2
# labels:
# app.kubernetes.io/name: backend
# app.kubernetes.io/version: v2