Skip to content

Latest commit

 

History

History
79 lines (51 loc) · 1.84 KB

README.md

File metadata and controls

79 lines (51 loc) · 1.84 KB

RHBK Development Deployment Example

linter workflow

Description

This repository is to provide some config files and scripts to facilate the deployment of Red Hat build of Keycloak into Openshift based on this documentation

Ensure that you are logged into an Openshift cluster to be able to complete all steps listed below.

Setup

Set sesion env var for the namespace and hostname.

export NAMESPACE=rhbk-playground
export HOSTNAME=<hostname for cluster>

create namespace

oc apply -f config/namespace.yaml

Install Operator

Via OC client

oc project $NAMESPACE
oc apply -f config/rhbk-operator.yaml

Via Openshift Web Console

  1. Navigate to Operators, select OperatorHub
  2. Search for Red Hat build of Keycloak
  3. Select and click install

Install development database

oc apply -f config/rhbk-postgres.yaml

Create TLS cert & key

sh scripts/gen_tls_cert_and_key.sh

Upload secrets to Openshift

sh scripts/set_rhbk_secrets.sh

Deploying Keycloak

sh scripts/create_keycloak.sh

Check deployment status

oc get keycloaks/rh-keycloak -o go-template='{{range .status.conditions}}CONDITION: {{.type}}{{"\n"}}  STATUS: {{.status}}{{"\n"}}  MESSAGE: {{.message}}{{"\n"}}{{end}}'

Get initial Admin credentials

sh get_admin_cred.sh

Configuring RHBK

View the documentation to get start with Keycloak here