Skip to content

Commit 720b356

Browse files
committed
Add Semantc Rtr support for Istio-Envoy ExtProc gw
1 parent e75fc0f commit 720b356

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

deploy/kubernetes/istio.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
apiVersion: networking.istio.io/v1
3+
kind: DestinationRule
4+
metadata:
5+
name: semantic-router
6+
namespace: default
7+
spec:
8+
#host: semantic-router.default.svc.cluster.local
9+
host: semantic-router.semantic-router.svc.cluster.local
10+
trafficPolicy:
11+
tls:
12+
mode: DISABLE # TODO Change this once semantic-router supports TLS
13+
insecureSkipVerify: true
14+
---
15+
apiVersion: networking.istio.io/v1alpha3
16+
kind: EnvoyFilter
17+
metadata:
18+
name: semantic-router
19+
namespace: default
20+
spec:
21+
configPatches:
22+
- applyTo: HTTP_FILTER
23+
match:
24+
# context omitted so that this applies to both sidecars and gateways
25+
listener:
26+
filterChain:
27+
filter:
28+
name: "envoy.filters.network.http_connection_manager"
29+
patch:
30+
operation: INSERT_FIRST # TODO Change to per route filter in future
31+
value:
32+
name: envoy.filters.http.ext_proc
33+
typed_config:
34+
"@type": type.googleapis.com/envoy.extensions.filters.http.ext_proc.v3.ExternalProcessor
35+
failure_mode_allow: true
36+
allow_mode_override: true
37+
message_timeout: 300s
38+
processing_mode:
39+
request_header_mode: "SEND"
40+
response_header_mode: "SKIP"
41+
request_body_mode: "BUFFERED"
42+
response_body_mode: "NONE"
43+
request_trailer_mode: "SKIP"
44+
response_trailer_mode: "SKIP"
45+
grpc_service:
46+
envoy_grpc:
47+
cluster_name: outbound|50051||semantic-router.semantic-router.svc.cluster.local

0 commit comments

Comments
 (0)