Custom bootstrapping
-
copy the real-export.json file into the keycloak pod
kubectl -n ef-external cp realm-export.json keycloak-0:/tmp/realm-export.json
-
Download the keycloak-bs.sh script and copy it inside the keycloak pod as well.
kubectl -n ef-external cp keycloak-bs.sh keycloak-0:/tmp/keycloak-bs.sh
-
execute the script inside the keycloak pod to create realm and assign users to it.
kubectl -n ef-external exec -ti keycloak-0 -- sh /tmp/keycloak-bs.sh
The realm expertflow must not exist previously for this script to work properly.