How to Import/Export Keycloak realms in RHBK on OpenShift using `oc debug`

Solution In Progress - Updated -

Issue

The Server Configuration Guide explains how to back up and restore realms using the export and import subcommands of the kc.sh command, but in the case of RHBK running on OpenShift, how can these commands be executed?

Environment

  • Red Hat Build of Keycloak
    • 22.0
    • 24.0
    • 26.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content