Configuration for a single inbound port named tcp-port
Configuration for a single inbound port named tcp-port
tcp-port
Configuration for a single inbound port named tcp-port
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
sectionName: tcp-port
rules:
- default:
idleTimeout: 1h
connectionTimeout: 10stype: MeshTimeout
name: inbound-timeout
mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: backend
sectionName: tcp-port
rules:
- default:
idleTimeout: 1h
connectionTimeout: 10sAdjust 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"
}
section_name = "tcp-port"
}
rules = [
{
default = {
idle_timeout = "1h"
connection_timeout = "10s"
}
}
]
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}