Timeout
Specify the proxy to configure with the selector, and the outbound connections from the proxy with the destinations
selector.
We will apply the configuration with kubectl apply -f [..]
.
type: Timeout
mesh: default
name: timeouts-backend
sources:
- match:
destinations:
- match:
kuma.io/service: 'backend'
conf:
# connectTimeout defines time to establish connection, 'connect_timeout' on Cluster, default 10s
connectTimeout: 10s
tcp:
# 'idle_timeout' on TCPProxy, disabled by default
http:
requestTimeout: 5s
# 'idle_timeout' on Cluster, disabled by default
idleTimeout: 1h
grpc:
# 'stream_idle_timeout' on HttpConnectionManager, disabled by default
streamIdleTimeout: 5m
maxStreamDuration: 30m
Timeout
is an Outbound Connection Policy. The only supported value for is kuma.io/service
.