# Keycloak 23 in Kubernetes is importing realm every single time

**URL:** <https://forum.keycloak.org/t/keycloak-23-in-kubernetes-is-importing-realm-every-single-time/23582>\
**Category:** Miscellanaeous\
**Created:** [December 5, 2023, 4:13pm UTC](https://forum.keycloak.org/t/keycloak-23-in-kubernetes-is-importing-realm-every-single-time/23582 "2023-12-05T16:13:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eoinmcq](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/eoinmcq/32/8457_2.png) [@eoinmcq](https://forum.keycloak.org/u/eoinmcq)\
**Post date:** [December 5, 2023, 4:13pm UTC](https://forum.keycloak.org/t/keycloak-23-in-kubernetes-is-importing-realm-every-single-time/23582/1 "2023-12-05T16:13:54Z")

</div>

Hi - I am trying to migrate my Keycloak 15 to Keycloak 23 and have it almost working bar one issue… No matter what I seem to try I get the following…

2023-12-05 15:54:35,856 INFO [org.keycloak.services] (main) KC-SERVICES0030: Full model import requested. Strategy: IGNORE\_EXISTING  
2023-12-05 15:54:46,149 INFO [org.keycloak.exportimport.util.ImportUtils] (main) Realm ‘myrealm’ imported

Even though I have the migration strategy of IGNORE\_EXISTING it doesn’t seem to pick up that the realm already exists and re-imports it.

I have tried this in docker and have had no such problems. (Granted it’s a stripped down version but still). I wondered was there something wrong with the persistence of my realm but I can see it in the database.

I am using kc.sh start --import-realm and have my realm file in /opt/keycloak/data/import/. It imports no problem but the problem is just that it imports every time.

Any ideas?

Thanks
