ingress-nginx自定义最大请求头大小
1、首先添加一个configmap叫nginx-config apiVersion: v1 data: client-header-buffer-size: 32k client-max-body-size: 5m gzip-level: "7" large-client-header-buffers: 4 32k proxy-connect-timeout: 11s proxy-read-timeout: 12s use-geoip2: "true" use-gzip: "true" kind: ConfigMap 2、配置ingress-nginx-controller的deployment添加arg,指定configmap=kube-system/nginx-config ... spec: containers: - args: - /nginx-ingress-controller - --default-backend-service=kube-system/nginx-ingress-default-backend - --election-id=ingress-controller-leader - --ingress-class=nginx - --tcp-services-configmap=kube-system/tcp-services - -