Blue-Green deployments and maintaining auth and session state

Hi,

I wonder if someone could give me some advice please?

I am looking to implement a blue-green deployment within a Kubernetes cluster. We currently use Keycloak for the authentication and we want to ensure the session state and authentication information remains as we switch over from the blue to the green environment; basically we don’t want the end users to have to re-login.

I believe the above can be achieved by using Infinispan to create a central cache and I assume we would point both Blue and Green environments to that cache.

  1. Is what I am trying to achieve possible?
  2. Have I understood the basics in terms of what is needed?

Sorry if this is a dumb question, but I am new to Kubernetes and Keycloak.

Many thanks

Andy

As per my knowledge, this is possible to achieve.

Thanks for responding, much appreciated.

1 Like