You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever the tag of the keycloak images changed the operator will scale down the deployment to 1 replica before rolling out the new image. this leads to all users being logged out (and high load on the last remaining replica).
I think this happens because the operator assumes there's always a database migration to be executed when there's a new image, see
Log.info("Detected changed Keycloak image, assuming Keycloak upgrade. Scaling down the deployment to one instance to perform a safe database migration");
however, we are baking the theme and additional spis into the image, so in our case it's common for the image to change but it doesn't contain any "breaking" changes that require this sort of deployment.
What's the suggested way to avoid this situation during rollout?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Whenever the tag of the keycloak images changed the operator will scale down the deployment to 1 replica before rolling out the new image. this leads to all users being logged out (and high load on the last remaining replica).
I think this happens because the operator assumes there's always a database migration to be executed when there's a new image, see
keycloak/operator/src/main/java/org/keycloak/operator/controllers/KeycloakDeployment.java
Line 552 in d29f3e4
however, we are baking the theme and additional spis into the image, so in our case it's common for the image to change but it doesn't contain any "breaking" changes that require this sort of deployment.
What's the suggested way to avoid this situation during rollout?
All reactions