We have 3 keycloak instances and 3 infinispan instances. Keycloaks are using the same postgresql database. And all keycloaks uses infinispans as external cache.
All infinispans are clustered and datas replicated.
All keycloaks can see all sessions.
When we get token from keycloak-node-1 we can not validate it on keycloak-node-2 or node-3.
But when we put a load balancer in front of keycloak nodes, we can get and validate token from localhost.
Also, when we deploy our application to kubernetes, it can take token from keycloak but it can not validate that token using either load balancer or nodes directly.
We stuck in this situation.
What we want to do is, taking token from any node, and validate that token in any node.
How can we achieve this?