DEV Community

Ravinder
Ravinder

Posted on

"http2_max_header_size" directive is obsolete, "large_client_header_buffers"

Hi,

Recently I have upgraded the k3s version to v1.26.7 and since then i am getting following 502 error when trying to access the web application so please advise what causing this error message. I even tried upgrading the ingress version but still the same problem. Another thing i tried is adding and increasing the following lines in the ingress deployment but they are not reflecting in the running pod config and still showing default setting for keepalive_requests & large_client_header_buffers , is this is the reason of this problem ?? If yes then please advise how i can make these config changes.

allow-snippet-annotations: "true"
large_client_header_buffers: 4 32k;
keepalive_requests: 20000;

Here is the link of ingress deployment manifest config i deployed and try to change the keepalive_requests & large_client_header_buffers values.

https://github.com/kubernetes/ingress-nginx/blob/controller-v1.9.4/deploy/static/provider/baremetal/deploy.yaml

2023/12/06 00:32:03 [warn] 30#30: the "http2_max_field_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /etc/nginx/nginx.conf:143
nginx: [warn] the "http2_max_field_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /etc/nginx/nginx.conf:143
2023/12/06 00:32:03 [warn] 30#30: the "http2_max_header_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /etc/nginx/nginx.conf:144
nginx: [warn] the "http2_max_header_size" directive is obsolete, use the "large_client_header_buffers" directive instead in /etc/nginx/nginx.conf:144
2023/12/06 00:32:03 [warn] 30#30: the "http2_max_requests" directive is obsolete, use the "keepalive_requests" directive instead in /etc/nginx/nginx.conf:145
nginx: [warn] the "http2_max_requests" directive is obsolete, use the "keepalive_requests" directive instead in /etc/nginx/nginx.conf:145

Top comments (0)