Breadcrumbs

Keycloak realm and users Bootstrapping for EF-CX

Custom bootstrapping 

  1.  copy the real-export.json file into the keycloak pod

    kubectl -n ef-external cp realm-export.json keycloak-0:/tmp/realm-export.json
    


  2. 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
    


  3. 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.