This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtraffictarget.yaml
90 lines (90 loc) · 1.63 KB
/
traffictarget.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
apiVersion: specs.smi-spec.io/v1alpha1
kind: HTTPRouteGroup
metadata:
name: bookinfo-allowed-paths
namespace: default
matches:
- name: api
pathRegex: ""
methods: ["*"]
---
kind: TrafficTarget
apiVersion: access.smi-spec.io/v1alpha1
metadata:
name: productpage-reviews-v1
namespace: default
destination:
kind: ServiceAccount
name: reviews-v1
namespace: default
specs:
- kind: HTTPRouteGroup
name: bookinfo-allowed-paths
matches:
- api
sources:
- kind: ServiceAccount
name: productpage-v1
namespace: default
---
kind: TrafficTarget
apiVersion: access.smi-spec.io/v1alpha1
metadata:
name: productpage-reviews-v3
namespace: default
destination:
kind: ServiceAccount
name: reviews-v3
namespace: default
specs:
- kind: HTTPRouteGroup
name: bookinfo-allowed-paths
matches:
- api
sources:
- kind: ServiceAccount
name: productpage-v1
namespace: default
---
kind: TrafficTarget
apiVersion: access.smi-spec.io/v1alpha1
metadata:
name: productpage-details-v3
namespace: default
destination:
kind: ServiceAccount
name: details-v1
namespace: default
specs:
- kind: HTTPRouteGroup
name: bookinfo-allowed-paths
matches:
- api
sources:
- kind: ServiceAccount
name: productpage-v1
namespace: default
---
kind: TrafficTarget
apiVersion: access.smi-spec.io/v1alpha1
metadata:
name: reviews-ratings
namespace: default
destination:
kind: ServiceAccount
name: ratings-v1
namespace: default
specs:
- kind: HTTPRouteGroup
name: bookinfo-allowed-paths
matches:
- api
sources:
- kind: ServiceAccount
name: reviews-v2
namespace: default
- kind: ServiceAccount
name: reviews-v3
namespace: default
---