Error 502 on login in AKS

Hello,

I have installed and setup Keycloak and made a simply application (Blazor Server) that uses OIDC, everything works fine on local environment. I then tried to publish it to AKS, and used NGINX Ingress to expose the two services. Everything seems to work, but when I sign in to my application, I just get redirected to my application with the error: 502 Bad Gateway.

I have checked the account for the user: /auth/realms/{Realm}/account, and the users is indeed signed in, but the application is just returning 502 Bad Gateway.

Does anyone have experience with Keycloak and Blazor Server (or other .NET) in AKS behind NGINX Ingress?

Regards,
Nikolas

Solved:
Needed to change NGINX Ingress buffer size