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 [..].

    1. type: Timeout
    2. mesh: default
    3. name: timeouts-backend
    4. sources:
    5. - match:
    6. destinations:
    7. - match:
    8. kuma.io/service: 'backend'
    9. conf:
    10. # connectTimeout defines time to establish connection, 'connect_timeout' on Cluster, default 10s
    11. connectTimeout: 10s
    12. tcp:
    13. # 'idle_timeout' on TCPProxy, disabled by default
    14. http:
    15. requestTimeout: 5s
    16. # 'idle_timeout' on Cluster, disabled by default
    17. idleTimeout: 1h
    18. grpc:
    19. # 'stream_idle_timeout' on HttpConnectionManager, disabled by default
    20. streamIdleTimeout: 5m
    21. maxStreamDuration: 30m

    Timeout is an Outbound Connection Policy. The only supported value for is kuma.io/service.