Properly manage user sessions in Keycloak and Kubernetes

Viewed 413

I have KeyCloak deployed to kubernetes.

When the pod restart for any reason (like a modification to the deployment) all user sessions are lost.

I see in documentation that session can only be stored in-memory. While it will be replicated, I found no documentation to ensure all sessions are replicated before the old pod goes down.

Strangely, My searches don't find people having any issue with this. Am I missing something?

My ideal solution would be to store the session data in a redis cluster.

0 Answers
Related