Keycloak into Kubernetes sync cache between Pods

Hello,

i need help by my configuration from sync the cache between n > 2 pod into one service from kubernets.

I read a lot of Blogs, Documentations and any stuff, but the sync into kubernetes will not work.
When I deploy two instance in Docker, the sync works out of box, but not in kubernetes.

In the first step i will not a sync between two datacenters, only under the pods. The sync between the datacenters is planned for later.

Can anyone help me by this problem?

Thanks :slight_smile:

Hello. We had that problem too.
We are using Docker instance of Keycloak and set up config like:
JGROUPS_DISCOVERY_PROTOCOL: kubernetes.KUBE_PING
JGROUPS_DISCOVERY_PROPERTIES: port_range=β€œ1”,namespace=β€œdev-test”
CACHE_OWNERS_COUNT: β€œ2”
CACHE_OWNERS_AUTH_SESSIONS_COUNT: β€œ2”
And our DevOps set up default serviceAccount and rbac

1 Like