ERROR BUFFER HEADER KONG HELM CHART "Upstream sent too big header while reading response header from upstream"

Good morning,
I need help I have an error in the kong “upstream sent too big header while reading response header from upstream” I think I need to increase buffer header in nginx but I am using the helm chart https://hub.kubeapps.com/charts/stable/kong and I don’t know how to modify these values ​​since they are internal to nginx How can I modify these values?
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
it’s very urgent, thank you for your help

You can use nginx directive injection feature of Kong to inject these into Kong’s configuration using environment variables (env section in Helm chart’s values.yaml file):

https://docs.konghq.com/1.2.x/configuration/

Thanks for your answer, I am using as follows in values.yaml:
env:
database: postgres
proxy_access_log: /dev/stdout
admin_access_log: /dev/stdout
admin_gui_access_log: /dev/stdout
portal_api_access_log: /dev/stdout
proxy_error_log: /dev/stderr
admin_error_log: /dev/stderr
admin_gui_error_log: /dev/stderr
portal_api_error_log: /dev/stderr
admin_listen: 127.0.0.1:8444 ssl
client_body_buffer_size: 512k
client_header_buffer_size: 512k
http2_max_field_size: 512k
http2_max_header_size: 512k
ssl_buffer_size: 512k

Do I have to use the nginx_http_ prefix in the env section?

For example if I want to add: proxy_buffer_size
I should use in the env section: nginx_proxy_proxy_buffer_size
It’s correct?
thank you very much

I solved the problem adding in values.yaml in the env section the values:
env:
nginx_proxy_proxy_buffer_size: 128k
nginx_proxy_proxy_buffers: 4 256k
nginx_proxy_proxy_busy_buffers_size: 256k
Thank!!


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ