Keycloak 4.0.0 and Rancher

Hi guys. I have a problem with Keycloak 4.0.0.Final and Spring Boot 1.5.9
I deploy my application to Rancher. If I add only one container with my app then everything is ok. When I create 2 containters then sometimes I get endless redirect loop. Has anyone had such a problem? Is there anything I should know?

It’s not simple like that. Since keycloak is a statefull application, you need a proper cluster setup, so that the instances can communicate with each other.

Thanks for the answer but I use token-store cookie and stateless session in my app. I had to change my spring boot adapter to spring security adapter and use newer version and add cookie.path property. And that’s all. Everything is ok now :slight_smile: