This all is 100% open source, so if you would like to contribute, feel free to edit this page.
apiVersion: k8s.keycloak.org/v2alpha1
kind: Keycloak
metadata:
name: demo-keycloak-instance
labels:
app: sso
namespace: demo-project
spec:
http:
httpEnabled: true
hostname:
# following would be better and easier to secure, but for demo purposes,
# we'll make both hostname and admin URL the same (fewer certificates' config)
# adminUrl: 'https://admin.demo-keycloak-instance.apps.cluster-mq98c.mq98c.sandbox870.opentlc.com'
adminUrl: 'https://demo-keycloak-instance.apps.cluster-mq98c.mq98c.sandbox870.opentlc.com'
hostname: demo-keycloak-instance.apps.cluster-mq98c.mq98c.sandbox870.opentlc.com
instances: 1
oc get route $(oc get routes -n demo-project -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' | grep demo-keycloak-instance) \
-n demo-project \
-o template --template=''\
; echo
oc get secret demo-keycloak-instance-initial-admin -n demo-project -o template --template='' | base64 -d ; echo
Take the secret from the client