Timeout adjustment for MeshGateway
Example how to change streamIdleTimeout
for MeshGateway
Configuration
apiVersion: kuma.io/v1alpha1
kind: MeshProxyPatch
metadata:
name: custom-template-1
namespace: kong-mesh-system
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: MeshGateway
name: gateway
default:
appendModifications:
- networkFilter:
operation: Patch
match:
name: envoy.filters.network.http_connection_manager
origin: gateway
jsonPatches:
- op: replace
path: "/streamIdleTimeout"
value: 15s
Copied!
type: MeshProxyPatch
mesh: default
name: custom-template-1
spec:
targetRef:
kind: MeshGateway
name: gateway
default:
appendModifications:
- networkFilter:
operation: Patch
match:
name: envoy.filters.network.http_connection_manager
origin: gateway
jsonPatches:
- op: replace
path: "/streamIdleTimeout"
value: 15s
Copied!
Please adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_proxy_patch" "custom_template_1" {
provider = konnect-beta
type = "MeshProxyPatch"
name = "custom-template-1"
spec = {
target_ref = {
kind = "MeshGateway"
name = "gateway"
}
default = {
append_modifications = [
{
network_filter = {
operation = "Patch"
match = {
name = "envoy.filters.network.http_connection_manager"
origin = "gateway"
}
json_patches = [
{
op = "replace"
path = "/streamIdleTimeout"
value = "15s"
}
]
}
}
]
}
}
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!