DEV Community

Ravinder
Ravinder

Posted on

directive is obsolete, use the "large_client_header_buffers

Hi All,

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 (deploy.yaml), but they are not reflecting in the running pod config and still showing the 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 permanent.

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

Here is the link to the ingress deployment manifest config, I deployed and tried to change the keepalive_requests & large_client_header_buffers values of the deploy. yaml.

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

large_client_header_buffers values of the running pod.

kubectl exec -ti ingress-nginx-controller-865578f4f4-sp4qd /bin/bash -n ingress-nginx
ingress-nginx-controller-865578f4f4-sp4qd:/etc/nginx$ cat nginx.conf|grep -i large_client_header_buffers
large_client_header_buffers 4 8k;

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)