Skip to content

Commit 4407aeb

Browse files
authored
+directResponse, faultInjection, egressAuthorization (#377)
1 parent 1a82a4f commit 4407aeb

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

gitops/bookinfo/tsb-bookinfo-application-gateway.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ items:
2828
labels:
2929
app: app-gw
3030
http:
31+
- name: health
32+
port: 80
33+
hostname: 'health.tetrate.io'
34+
routing:
35+
rules:
36+
- directResponse:
37+
status: 200
38+
body:
39+
string: "OK"
3140
- name: productpage
3241
port: 80
3342
hostname: "internal-bookinfo.tetrate.io"
@@ -59,6 +68,30 @@ items:
5968
- name: v3
6069
labels:
6170
version: v3
71+
- apiVersion: traffic.tsb.tetrate.io/v2
72+
kind: ServiceRoute
73+
metadata:
74+
name: ratings-sr
75+
namespace: bookinfo
76+
annotations:
77+
tsb.tetrate.io/organization: tetrate
78+
tsb.tetrate.io/tenant: dev
79+
tsb.tetrate.io/workspace: bookinfo-ws
80+
tsb.tetrate.io/trafficGroup: bookinfo-tg
81+
spec:
82+
service: bookinfo/ratings.bookinfo.svc.cluster.local
83+
httpRoutes:
84+
- name: ratings-faultinjections
85+
destination:
86+
- destinationHost: "bookinfo/ratings.bookinfo.svc.cluster.local"
87+
port: 9080
88+
fault:
89+
delay:
90+
percentage: 10
91+
fixedDelay: 500ms
92+
abort:
93+
percentage: 10
94+
httpStatus: 418
6295
- apiVersion: traffic.tsb.tetrate.io/v2
6396
kind: TrafficSetting
6497
metadata:

gitops/bookinfo/tsb-bookinfo-egress-gateway.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ items:
6060
mode: SIMPLE
6161
files:
6262
caCertificates: "/etc/ssl/certs/ca-certificates.crt"
63+
egressAuthorization:
64+
- from:
65+
mode: SERVICE_ACCOUNT
66+
serviceAccounts:
67+
- "bookinfo/bookinfo-details"
68+
to:
69+
- host:
70+
exact: "www.googleapis.com"
6371
- apiVersion: networking.istio.io/v1beta1
6472
kind: ServiceEntry
6573
metadata:

0 commit comments

Comments
 (0)