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

相关推荐
没有bug.的程序员1 天前
服务网格(Istio)与传统微服务深度对垒:流量治理内核、代码侵入性博弈与运维收益实战指南
java·运维·微服务·istio·流量治理内核·代码侵入性
懒神降世1 天前
基于iVentoy的PXE服务器的部署实战指南
运维·服务器·开发语言·云原生·vmware·openeuler·iventoy
江畔何人初1 天前
LVM中物理卷、物理区块、卷组、逻辑卷的概念以及它们之间的关系
linux·运维·云原生·容器·kubernetes
彷徨的蜗牛1 天前
架构进阶:微服务拆分的“生死线”
微服务·云原生·架构
egzosn1 天前
Eureka 的介绍和使用
云原生·eureka
canjun_wen1 天前
Nacos基础入门 03,Nacos vs Eureka vs Consul:主流服务注册中心深度对比测评
云原生·eureka·consul
liu****1 天前
4.镜像仓库详解
c++·docker·云原生·容器·kubernetes·镜像\
A-刘晨阳1 天前
K8S 之 Taints(污点)与 Tolerations(容忍)
运维·云原生·容器·kubernetes·k8s污点·k8s容忍
市安1 天前
基于Debain构建Ngxin镜像
运维·nginx·docker·云原生·容器·debian·镜像