Simple outbound HTTP configuration
This configuration will be applied to all data plane proxies inside of Mesh.
Configuration
apiVersion: kuma.io/v1alpha1
kind: MeshTimeout
metadata:
name: timeout-global
namespace: kuma-demo
labels:
kuma.io/mesh: default
spec:
to:
- targetRef:
kind: Mesh
default:
idleTimeout: 20s
connectionTimeout: 2s
http:
requestTimeout: 2s
Copied!
apiVersion: kuma.io/v1alpha1
kind: MeshTimeout
metadata:
name: timeout-global
namespace: kuma-demo
labels:
kuma.io/mesh: default
spec:
to:
- targetRef:
kind: Mesh
default:
idleTimeout: 20s
connectionTimeout: 2s
http:
requestTimeout: 2s
Copied!
type: MeshTimeout
name: timeout-global
mesh: default
spec:
to:
- targetRef:
kind: Mesh
default:
idleTimeout: 20s
connectionTimeout: 2s
http:
requestTimeout: 2s
Copied!
type: MeshTimeout
name: timeout-global
mesh: default
spec:
to:
- targetRef:
kind: Mesh
default:
idleTimeout: 20s
connectionTimeout: 2s
http:
requestTimeout: 2s
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" "timeout_global" {
provider = konnect-beta
type = "MeshTimeout"
name = "timeout-global"
spec = {
to = [
{
target_ref = {
kind = "Mesh"
}
default = {
idle_timeout = "20s"
connection_timeout = "2s"
http = {
request_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
}
Copied!