Default configuration
This configuration will be applied on inbounds and outbounds of all gateways
Configuration
apiVersion: kuma.io/v1alpha1
kind: MeshTimeout
metadata:
name: mesh-gateways-timeout-all-default
namespace: kong-mesh-system
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Mesh
proxyTypes:
- Gateway
from:
- targetRef:
kind: Mesh
default:
idleTimeout: 5m
http:
streamIdleTimeout: 5s
requestHeadersTimeout: 500ms
to:
- targetRef:
kind: Mesh
default:
idleTimeout: 1h
http:
streamIdleTimeout: 5s
Copied!
type: MeshTimeout
name: mesh-gateways-timeout-all-default
mesh: default
spec:
targetRef:
kind: Mesh
proxyTypes:
- Gateway
from:
- targetRef:
kind: Mesh
default:
idleTimeout: 5m
http:
streamIdleTimeout: 5s
requestHeadersTimeout: 500ms
to:
- targetRef:
kind: Mesh
default:
idleTimeout: 1h
http:
streamIdleTimeout: 5s
Copied!
Please adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_timeout" "mesh_gateways_timeout_all_default" {
provider = konnect-beta
type = "MeshTimeout"
name = "mesh-gateways-timeout-all-default"
spec = {
target_ref = {
kind = "Mesh"
proxy_types = [
= "Gateway"
]
}
from = [
{
target_ref = {
kind = "Mesh"
}
default = {
idle_timeout = "5m"
http = {
stream_idle_timeout = "5s"
request_headers_timeout = "500ms"
}
}
}
]
to = [
{
target_ref = {
kind = "Mesh"
}
default = {
idle_timeout = "1h"
http = {
stream_idle_timeout = "5s"
}
}
}
]
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}
Copied!