Exercise 4: Setup Keycloak
Last updated
Was this helpful?
Last updated
Was this helpful?
These setup instractions are based on .
The instructions go into installing an Ingress for Keycloak. But we have Istio installed and we will be using the Istio Ingress to access Keycloak externally. The original keycloak.yaml
is modified and the NodePort
has been removed.
Note: This is a "ephemeral" installation of Keycloak, there is no database used for persistance. Sufficient for a workshop but not suitable for production use!
Get the Keycloak URL and open the URL in your browser:
Note: This will work because we created a VirtualService in the previous exercise that maps the /auth
URI to the Keycloak service.
Click on Administration Console
.
Login In with username admin
and password admin
.
For the workshop we need our pre-configured realm, we will create the realm using a bash script.
Verify your existing environment varibles
Execute the bash script
Example output:
Try to create an access token, this requires the $INGRESSURL environment variable to be set:
Note: The image shows you in Kiali that we access Keycloak throuh our
istio-ingressgateway
. This is not a part of your hands-on tasks.
Congratulations, you have successfully completed the
Setup Application environment
. Awesome :star:
quarkus
of the imported realmview all users
You should see following users: admin
, alice
, jdoe