Simple configuration for inbound applied to specific service
This configuration will be applied to backend service inbound.
This configuration will be applied to backend service inbound.
apiVersion: kuma.io/v1alpha1
kind: MeshTimeout
metadata:
name: inbound-timeout
namespace: kuma-demo
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: backend
rules:
- default:
idleTimeout: 60s
connectionTimeout: 2s
http:
requestTimeout: 10s
streamIdleTimeout: 1h
maxStreamDuration: 30m
maxConnectionDuration: 30mtype: MeshTimeout
name: inbound-timeout
mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: backend
rules:
- default:
idleTimeout: 60s
connectionTimeout: 2s
http:
requestTimeout: 10s
streamIdleTimeout: 1h
maxStreamDuration: 30m
maxConnectionDuration: 30mAdjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_timeout" "inbound_timeout" {
provider = konnect-beta
type = "MeshTimeout"
name = "inbound-timeout"
spec = {
target_ref = {
kind = "Dataplane"
labels = {
app = "backend"
}
}
rules = [
{
default = {
idle_timeout = "60s"
connection_timeout = "2s"
http = {
request_timeout = "10s"
stream_idle_timeout = "1h"
max_stream_duration = "30m"
max_connection_duration = "30m"
}
}
}
]
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}