调整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

相关推荐
Elastic 中国社区官方博客5 小时前
为 Elastic Cloud Serverless 和 Elasticsearch 引入统一的 API 密钥
大数据·运维·elasticsearch·搜索引擎·云原生·serverless
旷世奇才李先生7 小时前
Spring Cloud Alibaba 2026实战:微服务治理全解析
微服务·云原生·架构
米高梅狮子13 小时前
06.Kubernetes Secret和Kubernetes Controllers
云原生·容器·kubernetes
雨奔13 小时前
Kubernetes 实操:创建 LimitRange 和 Pod 并管理内存资源
云原生·容器·kubernetes
LSL666_14 小时前
什么是微服务
微服务·云原生·架构
青槿吖15 小时前
第二篇:从复制粘贴到自定义规则!Spring Cloud Gateway 断言 + 过滤全玩法,拿捏微服务流量管控
java·spring boot·后端·spring cloud·微服务·云原生·架构
lulukanshijie16 小时前
Helm 入门:Kubernetes 包管理器介绍
其他·云原生·容器·kubernetes
七七powerful16 小时前
Kubernetes 弹性伸缩(HPA)设计思想深度解析
云原生·容器·kubernetes
雨奔17 小时前
Kubernetes Pod Preset 详解:自动注入 Pod 配置的高效方案
云原生·容器·kubernetes
Elastic 中国社区官方博客18 小时前
使用 Elastic Observability 和 MCP 的 Agentic 驱动 Kubernetes 调查
数据库·elasticsearch·搜索引擎·云原生·容器·kubernetes·全文检索