Realm imported into master instead of creating a new one

I am using KEYCLOAK_IMPORT to import my realm in a kubernetes environment. Even if the export contains an id and a realm key in the json file it is imported into the master realm. How do create a new realm during import?