File tree 3 files changed +66
-0
lines changed
3 files changed +66
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ curl --http2-prior-knowledge -s ${GATEWAY_HOST}:80/yages.Echo/Ping -H 'Host: grp
84
84
```
85
85
86
86
## GRPCRoute Match
87
+
87
88
The ` matches ` field can be used to restrict the route to a specific set of requests based on GRPC's service and/or method names.
88
89
It supports two match types: ` Exact ` and ` RegularExpression ` .
89
90
@@ -262,6 +263,27 @@ Test GRPC routing to the `yages` backend using the [grpcurl][] command.
262
263
grpcurl -plaintext -authority=grpc-example.com ${GATEWAY_HOST} :80 yages.Echo/Ping
263
264
```
264
265
266
+ ## Configuring or disabling timeouts with ` BackendTrafficPolicy `
267
+
268
+ Streaming GRPC connections will often have lifespans longer than the default Envoy proxy timeout of 15 seconds. With Envoy Gateway, this timeout value can be configured using a [ BackendTrafficPolicy] [ ] resource:
269
+
270
+ ``` yaml
271
+ apiVersion : gateway.envoyproxy.io/v1alpha1
272
+ kind : BackendTrafficPolicy
273
+ metadata :
274
+ name : configure-timeout-policy
275
+ spec :
276
+ targetRefs :
277
+ - group : gateway.networking.k8s.io
278
+ kind : GRPCRoute
279
+ name : name-of-my-grpc-route
280
+ timeout :
281
+ http :
282
+ # Set to '0s' to disable timeouts
283
+ requestTimeout : 0s
284
+ ` ` `
285
+
286
+ [BackendTrafficPolicy]: ../../api/extension_types#backendtrafficpolicy
265
287
[GRPCRoute]: https://gateway-api.sigs.k8s.io/api-types/grpcroute/
266
288
[Gateway API documentation]: https://gateway-api.sigs.k8s.io/
267
289
[GatewayClass]: https://gateway-api.sigs.k8s.io/api-types/gatewayclass/
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ curl --http2-prior-knowledge -s ${GATEWAY_HOST}:80/yages.Echo/Ping -H 'Host: grp
84
84
```
85
85
86
86
## GRPCRoute Match
87
+
87
88
The ` matches ` field can be used to restrict the route to a specific set of requests based on GRPC's service and/or method names.
88
89
It supports two match types: ` Exact ` and ` RegularExpression ` .
89
90
@@ -262,6 +263,27 @@ Test GRPC routing to the `yages` backend using the [grpcurl][] command.
262
263
grpcurl -plaintext -authority=grpc-example.com ${GATEWAY_HOST} :80 yages.Echo/Ping
263
264
```
264
265
266
+ ## Configuring or disabling timeouts with ` BackendTrafficPolicy `
267
+
268
+ Streaming GRPC connections will often have lifespans longer than the default Envoy proxy timeout of 15 seconds. With Envoy Gateway, this timeout value can be configured using a [ BackendTrafficPolicy] [ ] resource:
269
+
270
+ ``` yaml
271
+ apiVersion : gateway.envoyproxy.io/v1alpha1
272
+ kind : BackendTrafficPolicy
273
+ metadata :
274
+ name : configure-timeout-policy
275
+ spec :
276
+ targetRefs :
277
+ - group : gateway.networking.k8s.io
278
+ kind : GRPCRoute
279
+ name : name-of-my-grpc-route
280
+ timeout :
281
+ http :
282
+ # Set to '0s' to disable timeouts
283
+ requestTimeout : 0s
284
+ ` ` `
285
+
286
+ [BackendTrafficPolicy]: ../../api/extension_types#backendtrafficpolicy
265
287
[GRPCRoute]: https://gateway-api.sigs.k8s.io/api-types/grpcroute/
266
288
[Gateway API documentation]: https://gateway-api.sigs.k8s.io/
267
289
[GatewayClass]: https://gateway-api.sigs.k8s.io/api-types/gatewayclass/
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ curl --http2-prior-knowledge -s ${GATEWAY_HOST}:80/yages.Echo/Ping -H 'Host: grp
84
84
```
85
85
86
86
## GRPCRoute Match
87
+
87
88
The ` matches ` field can be used to restrict the route to a specific set of requests based on GRPC's service and/or method names.
88
89
It supports two match types: ` Exact ` and ` RegularExpression ` .
89
90
@@ -262,6 +263,27 @@ Test GRPC routing to the `yages` backend using the [grpcurl][] command.
262
263
grpcurl -plaintext -authority=grpc-example.com ${GATEWAY_HOST} :80 yages.Echo/Ping
263
264
```
264
265
266
+ ## Configuring or disabling timeouts with ` BackendTrafficPolicy `
267
+
268
+ Streaming GRPC connections will often have lifespans longer than the default Envoy proxy timeout of 15 seconds. With Envoy Gateway, this timeout value can be configured using a [ BackendTrafficPolicy] [ ] resource:
269
+
270
+ ``` yaml
271
+ apiVersion : gateway.envoyproxy.io/v1alpha1
272
+ kind : BackendTrafficPolicy
273
+ metadata :
274
+ name : configure-timeout-policy
275
+ spec :
276
+ targetRefs :
277
+ - group : gateway.networking.k8s.io
278
+ kind : GRPCRoute
279
+ name : name-of-my-grpc-route
280
+ timeout :
281
+ http :
282
+ # Set to '0s' to disable timeouts
283
+ requestTimeout : 0s
284
+ ` ` `
285
+
286
+ [BackendTrafficPolicy]: ../../api/extension_types#backendtrafficpolicy
265
287
[GRPCRoute]: https://gateway-api.sigs.k8s.io/api-types/grpcroute/
266
288
[Gateway API documentation]: https://gateway-api.sigs.k8s.io/
267
289
[GatewayClass]: https://gateway-api.sigs.k8s.io/api-types/gatewayclass/
You can’t perform that action at this time.
0 commit comments