502 & Keepalive connection closed, AWS/CloudFront + classic LB + Kong (K8s)

How can I disable keepalive functionality in Kong?

It’s not clear to me from the description whether this will solve your problem, but to your specific question, here’s how to disable the upstream keepalive — note however that this is likely to have a performance impact:

Depending on your upstream’s behavior, you may want to tune the other related options upstream_keepalive_max_requests and upstream_keepalive_idle_timeout (also in the link above).