I have keycloak version 16.X on kubernetes cluster.
We are having now 502 bad gateway error. To resolve this few months back we have increased the ingress proxy buffer size as mentioned in known issue on git.
recently we are getting again 502 Error . So I’ve increased the proxy buffer size from 128k to 256k.
still issue is persist.
In my case I have increased proxy buffer size in ingress of keycloak and application as well
example for my problem:
Client having argo application and they have their own ingress in their namespace.
to solve the problem they have increased proxy buffer in argocd ingress.