调整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 小时前
当KubeBlocks遇上国产数据库之Kingbase:让信创数据库“飞得更高”
运维·数据库·云原生
会飞的大可5 小时前
WMS系统演进——从单体到微服务
微服务·云原生·架构
cyber_两只龙宝7 小时前
【Docker】Dockerfile构建镜像实验全流程详解
linux·运维·docker·云原生
沐风清扬7 小时前
RuoYi-Cloud微服务架构核心技术揭秘
微服务·云原生·架构
笨手笨脚の8 小时前
k8s 中的一些小知识
云原生·容器·kubernetes
cyber_两只龙宝8 小时前
【Docker】Docker的原生网络介绍
linux·运维·docker·云原生·容器
国医中兴9 小时前
边缘计算中的存储挑战与解决方案
微服务·云原生·容器·kubernetes·k8s
数新网络10 小时前
DataX 深度解析:异构数据同步的核心设计与实现原理
云原生
杰克尼10 小时前
知识点总结--day12(常用组件3/3)
云原生·eureka
小陈工10 小时前
2026年3月30日技术资讯洞察:AI算力突破、云原生优化与架构理性回归
开发语言·人工智能·python·云原生·架构·数据挖掘·wasm