Kubernetes Keycloak : Add admin console url

After creating the Keycloak application on aws eks seems some additional stuff is required to get Admin Console. Before discussing the issue, let me give you below the links in order to create and run keycloak application.

I am using steps defined in the below codecentric helm repo for installing the application. Download the values.yaml and make changes related to ingress. I’ll update the values.yaml and club all my changes but meantime below is the flow to override the default behavior.

helm-charts/charts/keycloak at master ยท codecentric/helm-charts (github.com)

After installing the chart as you can see the URL asks me to connect localhost to create admin user.

Below are the changes that are required in statefulset for my keycloak:-

kubectl edit statefulset -n keycloak keycloak

#add the following to .spec.template.spec.containers.0.env:

name: KEYCLOAK_USER

value: admin

name: KEYCLOAK_PASSWORD

value: admin

Now, this shows me the link to go to the admin console but after login, the screen is still blank and the error message in browser inspect shows like this:-

keycloak was loaded over HTTPS, but requested an insecure script ‘auth/js/keycloak.js?version=dcsq4’. This request has been blocked; the content must be served over HTTPS.

kubectl edit statefulset -n keycloak keycloak

#add the following to .spec.template.spec.containers.0.env:

name: PROXY_ADDRESS_FORWARDING

value: "true"

After login with admin user below is the screen…