Repository navigation
keycloak 20 running on k8s with reverse proxy #16971
v-kamerdinerov
started this conversation in
Archive
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello! I started discusion in #14683 but my problem not related to that tread. So i strarted a new one. @hmlnarik fyi
When i trying to deploy keycloak in a 3 replica configuration, mysql database and haproxy (as a reverse proxy with TLS termination on its side) I ran into a problem similar to the #14683.
For now, admin console looks like:

On base path url i got 404 error on some resources - https://keycloak-url/auth/


As i understand, keycloak by default generate a random seds number when starting the server which is secure but will lead to problems when a loadbalancer without sticky sessions.
If I reduce the number of replicas to 1, everything works fine.
As far as I understand, on the haproxy side I need to activate sticky session to bypass this problem, am I right?
example:
Maybe you already have best practices for haproxy?
Or are there other ways around this problem?
Thank you in advance.
All reactions