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

相关推荐
言之。1 小时前
K8s CoreDNS 核心知识点总结
云原生·容器·kubernetes
项目題供诗1 小时前
黑马k8s(十一)
云原生·容器·kubernetes
国际云,接待2 小时前
腾讯云怎么在游戏云中助力
服务器·游戏·云原生·重构·云计算·腾讯云
牛奔10 小时前
Docker配置远程连接
运维·docker·云原生·容器·eureka
天天爱吃肉821813 小时前
【低成本STM32的T-BOX开发实战:高可靠的车联网解决方案】
stm32·单片机·嵌入式硬件·云原生
庸子14 小时前
Serverless技术深度整合:从冷启动优化到边缘场景落地
云原生·架构·serverless
叶子爱分享17 小时前
浅谈无服务器WebSocket的优势
websocket·云原生·serverless
luck_me517 小时前
基于 Kubernetes 部署容器平台kubesphere
云原生·容器·kubernetes
AquaPluto19 小时前
kubernetes的Service与服务发现
云原生·kubernetes·服务发现·ingress
Dovis(誓平步青云)1 天前
“Cloud Native English“云原生时代下的微服务架构设计:从理论到实战全解析
经验分享·微服务·云原生·架构