Setup Service Interconnect in Globex DB namespace

Similar to the Web App site, you will set up the site and routers on DB Namespace using the Red Hat Service Interconnect command line interface.

1. Create Red Hat Service Interconnect Site

  1. In the terminal, run the following command to create a site to set up the VAN routers.

    skupper site create globex-skupper-db-{user_name} -n globex-skupper-db-{user_name}
    Output
    Waiting for status...
    Site "globex-skupper-db-{user_name}" is ready.

2. Create a connector

What is a connector?

A connector links a local workload to listeners in remote sites using routing keys. The routing key is a string identifier that binds the connector to matching listeners in remote sites.

listener connector

  1. In the terminal, run the following command to create a connector for the database.

    skupper connector create globex-db 5432 --workload deployment/globex-db -n globex-skupper-db-{user_name}
    Output
    Waiting for create to complete...
    Connector "globex-db" is configured.
  2. To see the status of the skupper network

    skupper connector -n globex-skupper-db-{user_name} status
    Output
    ... STATUS     MATCHING LISTENER   MESSAGE
    ... Pending    False               No matching listeners
    The Status is shown as Pending and the Message states that there are No matching listeners. This is because the Connector you created is in Pending state since the Access Token is not yet redeemed.

3. Visualise set up on Red Hat Service Interconnect Network Console

Before proceeding to the final step of creating the Virtual Application Network, navigate to the Service Interconnect Network Console to visualize the Virtual Application Network based on the configuration you’ve set up so far.

  1. Click on Log in with OpenShift, and login as ({user_name}/{user_password}).

  2. Click Allow selected permissions.

    allow permission
  3. You will only be able to see the globex-skupper-{user_name} namespace for the moment. This is because the database namespace is not yet part of the Virtual Application Network.

    network console initial