Configuring Keycloak using Helm Chart on AWS EKS

Hello,

we are trying to get a Helm Installation of keycloak working using EKS in AWS. I’m setting the Environment up using it’s own VPC and I’ve setup peering as our Database is in RDS. I want to setup keycloak as HA. After installing keycloak via helm when I run kubectl get pods I can see 2 instances of keycloak have been deployed.

NAME READY STATUS RESTARTS AGE
keycloak-0 0/1 Running 0 15s
keycloak-1 0/1 Running 0 15s
pyodbc-tests 1/1 Running 1 17d

My question is because it’s in it’s own VPC running on a Kubernetes cluster how do I access the Dashboard of Keycloak. Once installed I get this message for how to access.

helm install keycloak --set keycloak.replicas=2 codecentric/keycloak
NAME: keycloak
LAST DEPLOYED: Fri Jun 26 15:05:24 2020
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
Keycloak can be accessed:

  • Within your cluster, at the following DNS name at port 80:

    keycloak-http.default.svc.cluster.local

  • From outside the cluster, run these commands in the same shell:

    export POD_NAME=$(kubectl get pods --namespace default -l app.kubernetes.io/instance=keycloak -o jsonpath="{.items[0].metadata.name}")
    echo “Visit http://127.0.0.1:8080 to use Keycloak”
    kubectl port-forward --namespace default $POD_NAME 8080

Login with the following credentials:
Username: keycloak

To retrieve the initial user password run:
kubectl get secret --namespace default keycloak-http -o jsonpath="{.data.password}" | base64 --decode; echo

I know I need to access outside the cluster as I’ll need a device with a web browser but I’m not having any luck. I run the commands it suggests but what do I do once that’s done. I need to access the dashboard via a browser?

The steps I used to install keycloak can be found doing a google search for keycloak helm install

Any help at all on this would be great I may not have explained well at all but if you need more info just let me know what it is you need and I’ll gladly provide it.

Thanks in advance