Exploring Red Hat OpenShift Database Access

Web Console

You can discover which database instance is connected to an application, along with other information by viewing the database inventory page.

Prerequisites

Procedure . Log into the Red Hat Hybrid Cloud Console with your credentials.

Red Hat Hybrid Cloud Console login page
  1. Click OpenShift from the navigation menu.

OpenShift link from the navigation menu
  1. From the Clusters page, click on a cluster name from the list of available clusters.

  2. Click the Open console button, and provide your account credentials.

Open Console button
  1. From the OpenShift Cluster Manager console, change to the Administrator perspective.

  2. From the Project drop-down, select the redhat-dbaas-operator project.

  3. Expand the Data Services, and click on Database Access from the navigation menu.

Database Access on the navigation menu
  1. Viewing the inventory table you can find which database instance is connected to an application. You can also view the database provider, the provider account resource, and the associated project name.

Snippet of the database inventory view
Figure 1. Example

Explore using CLI by using below commands

oc get catalogsources -n openshift-marketplace

NAME                           DISPLAY                      TYPE   PUBLISHER   AGE
ccapi-k8s-catalogsource        CockroachDB Cloud Operator   grpc               27h
certified-operators            Certified Operators          grpc   Red Hat     5d8h
community-operators            Community Operators          grpc   Red Hat     5d8h
crunchy-bridge-catalogsource   Crunchy Bridge Operator      grpc               27h
dbaas-operator                 DBaaS Operator               grpc               27h
mongodb-atlas-catalogsource    MongoDB Atlas Operator       grpc               27h
redhat-marketplace             Red Hat Marketplace          grpc   Red Hat     5d8h
redhat-operators               Red Hat Operators            grpc   Red Hat     5d8h
oc get catalogsource dbaas-operator -n openshift-marketplace

NAME             DISPLAY          TYPE   PUBLISHER   AGE
dbaas-operator   DBaaS Operator   grpc               27h
oc get subs -n openshift-dbaas-operator

NAME                                                                        PACKAGE                       SOURCE                         CHANNEL
ccapi-k8s-subscription                                                      ccapi-k8s-operator            ccapi-k8s-catalogsource        alpha
crunchy-bridge-subscription                                                 crunchy-bridge-operator       crunchy-bridge-catalogsource   alpha
dbaas-operator                                                              dbaas-operator                dbaas-operator                 alpha
mongodb-atlas-subscription                                                  mongodb-atlas-kubernetes      mongodb-atlas-catalogsource    beta
rh-service-binding-operator-stable-redhat-operators-openshift-marketplace   rh-service-binding-operator   redhat-operators               stable
oc get sub dbaas-operator -n openshift-dbaas-operator

NAME             PACKAGE          SOURCE           CHANNEL
dbaas-operator   dbaas-operator   dbaas-operator   alpha
bash-4.4 ~ $ oc get og -n openshift-dbaas-operator
NAME             AGE
dbaas-operator   3d23h