Issue trying to deploy in standalone-ha.xml

Hi!

I’m facing a problem trying to deploy keycloak entities on kubernetes in GKE. I/m using the standalone-ha mode, i’ve already set a mysql database and updated the configuration file.

If i run two keycloak instances (in the same workload) im always receive a Login expired error. With one instance this error doesnt happens

Ive already tried to use another discovery protocol like JDBC_PING or TCPPING without success (the pod crashes without any exception/error). I think it may be that the instances cannot discover themselves.

To make it more simple, anybody knows where can i find a standalone-ha.xml template file or how to configure a discovery protocol to work with kubernetes? I know there is the documentation but is so incomplete and we-re using keycloak 12

thanks!

I’d recommend an upgrade to the quarkus based version (>17), which has as much easer cluster setup in kubernetes.

Some documentation for the old way: Keycloak Cluster Setup - Keycloak

1 Like