调整istio得请求头大小限制

在istio-system分区创建一个EnvoyFilter,作用于全局网关实例,yaml如下:

apiVersion: networking.istio.io/v1alpha3

kind: EnvoyFilter

metadata:

name: {istio-ingressgateway-name}

namespace: {istio-ingressgateway-ns}

spec:

workloadSelector:

labels:

configPatches:

  • applyTo: HTTP_FILTER

match:

context: GATEWAY

listener:

filterChain:

filter:

name: envoy.filters.network.http_connection_manager

#proxy:

#proxyVersion: ^1.14.*

patch:

operation: INSERT_BEFORE

value:

name: with-matcher

typed_config:

'@type': type.googleapis.com/envoy.extensions.common.matching.v3.ExtensionWithMatcher

extension_config:

name: envoy.filters.http.buffer

typed_config:

'@type': type.googleapis.com/envoy.extensions.filters.http.buffer.v3.Buffer

max_request_bytes: {max-body-size}

xds_matcher:

matcher_tree:

input:

name: request-headers

typed_config:

'@type': type.googleapis.com/envoy.type.matcher.v3.HttpRequestHeaderMatchInput

header_name: Upgrade

exact_match_map:

map:

websocket:

action:

name: skip

typed_config:

'@type': type.googleapis.com/envoy.extensions.filters.common.matcher.action.v3.SkipFilter

相关推荐
不爱笑的良田2 小时前
从零开始的云原生之旅(十四):Ingress Controller 实战:Nginx Ingress 深度解析
微服务·云原生·istio
不爱笑的良田5 小时前
从零开始的云原生之旅(十二):从 Service 到 Ingress——K8s 服务暴露完全指南
云原生·容器·kubernetes
中电金信5 小时前
云原生时代,应用运维模式如何破局?
运维·云原生
周杰伦_Jay8 小时前
【基于 Spring Cloud Alibaba 的微服务电商项目】完整实现思路
微服务·云原生·架构
Z***258010 小时前
后端服务网格实践,Istio与Linkerd对比
云原生·istio
m***D28610 小时前
后端服务网格配置,Istio虚拟服务
云原生·istio
0***K89210 小时前
后端服务网格配置,Istio Gateway
云原生·gateway·istio
z***I39410 小时前
后端服务网格流量镜像,Istio Mirroring
云原生·istio
l***O52010 小时前
后端服务网格流量控制,Istio规则配置
云原生·istio