I’ve been trying to build a highly available Docker Swarm deployment with Docker Compose and external database service.
One thing I cannot figure out is the HA concept and what is really needed.
I have an external load balancer system in front of my deployment which is distributing the connections with “sticky-sessions” enabled as documented.
I’ve understood that Operator would distribute for example the oAuth sessios information for users, so they are not required to login again if there’s a valid token. But is this really the only reason for Operator? This seems like a lot of work for simple thing that a shared database would do? Which i already in place…
I’ve read form documentation that vaguely says that Keycloak has builtin Infinispan operator inplace which should do the HA stuff in the background when the nodes are in the same network. I’ve also configured an overlay network for keylcoak containers in the Docker Swarm.
When looking and my container logs I cannot validate that this is happening since all containers are saying that “no members discovered after 2005 ms: creating cluster as coordinator”.
So I tried to use Keycloak Operator. Which just doesn’t seem to be fit for Docker? All guides and examples are using Kubernetes, but in my case we would need the Docker version.
Is there anyone who has bene able to create Keycloak Operator in Docker Compose/Swarm environment?