Disable a timeout
Set a timeout to 0 to disable it, rather than setting a very large value. The default inbound request timeout is disabled the same way.
Configuration
apiVersion: kuma.io/v1alpha1
kind: MeshTimeout
metadata:
name: backend-no-request-timeout
namespace: kong-mesh-demo
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: backend
rules:
- default:
http:
requestTimeout: 0sCopied!
type: MeshTimeout
name: backend-no-request-timeout
mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: backend
rules:
- default:
http:
requestTimeout: 0sCopied!
Adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_timeout" "backend_no_request_timeout" {
provider = konnect-beta
type = "MeshTimeout"
name = "backend-no-request-timeout"
spec = {
target_ref = {
kind = "Dataplane"
labels = {
app = "backend"
}
}
rules = [
{
default = {
http = {
request_timeout = "0s"
}
}
}
]
}
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!