Skip to content

Scripts and example configuration files for deploying Red Hat Build if Key-cloak on Openshift for development

Notifications You must be signed in to change notification settings

col1985/rhbk-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Scripts and example configuration files for deploying Red Hat Build if Key-cloak on Openshift for development

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages