Simple outbound TCP configuration
This configuration will be applied to all data plane proxies inside of Mesh.
This configuration will be applied to all data plane proxies inside of Mesh.
apiVersion: kuma.io/v1alpha1
kind: MeshTimeout
metadata:
name: tcp-timeout
namespace: kuma-demo
labels:
kuma.io/mesh: default
spec:
to:
- targetRef:
kind: Mesh
default:
idleTimeout: 20s
connectionTimeout: 2stype: MeshTimeout
name: tcp-timeout
mesh: default
spec:
to:
- targetRef:
kind: Mesh
default:
idleTimeout: 20s
connectionTimeout: 2sAdjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_timeout" "tcp_timeout" {
provider = konnect-beta
type = "MeshTimeout"
name = "tcp-timeout"
spec = {
to = [
{
target_ref = {
kind = "Mesh"
}
default = {
idle_timeout = "20s"
connection_timeout = "2s"
}
}
]
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}