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

相关推荐
wapicn995 小时前
微服务架构下的数据核验设计,API接入最佳实践
微服务·云原生·架构
AI攻城狮6 小时前
对AI泡沫的地狱式批判,你认可吗?
云原生
面汤放盐9 小时前
从单体架构到微服务架构:模式与最佳实践
微服务·云原生·架构
木雷坞13 小时前
K8s GPU 推理服务 ImagePullBackOff 排查与预热
云原生·容器·kubernetes·gpu算力
AOwhisky16 小时前
Kubernetes调度与服务暴露:从“定时任务”到“服务发现”的完全指南
linux·运维·云原生·容器·kubernetes·服务发现
Cyber4K17 小时前
【Kubernetes专项】温故而知新,重温技术原理(6)
云原生·容器·kubernetes
运维老郭19 小时前
K8s故障排查:一条分层排查路径解决99%线上问题
运维·云原生·kubernetes
AI攻城狮19 小时前
谷歌花400亿投了"对手":这不是矛盾,这是最高明的战略对冲
云原生
AI攻城狮19 小时前
中国大模型在成本领域继续碾压对手,成为难以逾越的护城河
云原生
冷小鱼20 小时前
Spring Boot:从核心原理到 AI 时代的云原生基石
人工智能·spring boot·云原生