Running multiple keycloak pod replicas break the Admin Console UI

I have setup keycloak v20.0 with bitnami chart.
When I setup multiple replicas of Keycloak, Admin Console UI fails to load and multiple CSS and js gets 404.
After digging into it found that name of the resources folder inside keycloak/data/tmp/kc-gzip-cache/ is different on every pod.
Due to this when visit the link of CSS, I get 200 once and 404 multiple times.

I also tried using --auto-build option but did not work.

Any pointers to fix this?

Have you configured to run a Keycloak Cluster or just multiple replicas?
Only by increasing the replica count, without configuring a Keycloak cluster explicitly, it won’t work.
Additionally, as you write that each pod has a different resource folder path part, I guess you don’t run your cluster with a common external database, which is essential for running a cluster.
Without telling us about your configuration, we can’t be of good help.

Thanks @dasniko for reply.
I faced this issue in Keycloak v20 only. It works in v21.
Also I did not set different resource folder path. They were getting created automatically.

Btw, I found fix for v21 issue. So now no issues :slight_smile: