Integrating with Red Hat OpenShift Application and Data Services

Some of the features in Serverless Logic Web Tools require integration with Red Hat OpenShift Application and Data Services. Consider uploading OpenAPI specifications to a service registry and deploying Serverless Workflow that requires Apache Kafka as examples of integration with Red Hat OpenShift Application and Data Services.

This document describes how you can configure the required settings to complete the integration with Red Hat OpenShift Application and Data Services.

Creating a service account in Red Hat OpenShift application and Data Services

You can create or use a service account from your Red Hat OpenShift Application and Data Services console and add the service account to the Serverless Logic Web Tools.

Prerequisites
  • You have access to the Red Hat OpenShift Application and Data Services console.

Procedure
  1. To create a service account in Red Hat Openshift Application and Data Services, perform the following steps:

    You can skip this step if you already have a service account.

    1. Go to Service Accounts | Red Hat OpenShift Application and Data Services.

    2. Click Create service account.

    3. In the Create a service account window, enter a service account name in the Short description field.

    4. Click Create.

      A modal displaying your Client ID and Client Secret appears.

    5. Copy and save the Client ID and Client Secret.

    6. Check the I have copied the client ID and secret checkbox and click Close.

  2. If you already have a service account, find your Client ID and Client Secret.

  3. In the Serverless Logic Web Tools, click on the Cog wheel (⚙️) on the top-right corner and go to the Service Account tab.

  4. Enter your Client ID and Client Secret in the respective fields.

  5. Click Apply.

    The content in the Service Account tab updates and displays Your Service Account information is set message.

Creating a Service Registry in Red Hat OpenShift application and Data Services

You can create or use a Service Registry instance from your Red Hat OpenShift Application and Data Services console and add the Service Registry to Serverless Logic Web Tools.

Prerequisites
Procedure
  1. To create a Service Registry instance in Red Hat Openshift Application and Data Services console, perform the following steps:

    You can skip this step if you already have a Service Registry instance.

    1. Go to Service Registry | Red Hat OpenShift Application and Data Services.

    2. Click Create Service Registry instance button.

    3. In the Create a Service Registry instance window, enter a Service Registry instance name and click Create.

      The list of Service Registry instances updates with your instance.

    4. Find the Service Registry instance you created in the list and click on the instance.

    5. Go to the Settings tab and click on Grant access.

    6. In the drop-down, select the service account you created in the previous procedure.

    7. Select a role for your service account.

      You must select the role as Manager or Administrator to have the read and write access.

    8. Click Save.

    9. Click on the menu on the top-right corner of the screen.

    10. Click Connection.

      A drawer opens containing the required connection and authentication information.

    11. Copy the value of Core Registry API.

  2. If you already have a Service Registry, find the value of Core Registry API of your Service Registry.

  3. In the Serverless Logic Web Tools web application, click on the Cog wheel (⚙️) on the top-right corner and go to the Service Registry tab.

  4. Enter a name for your registry.

    You can enter the same name that you used while creating the Service Registry instance.

  5. Enter the value of Core Registry API and click Apply.

    The content in the Service Registry tab updates and displays Your Service Registry information is set message.

Creating Streams for Apache Kafka in Red Hat OpenShift application and Data Services

You can create or use a Kafka instance from Red Hat OpenShift Application and Data Services console and add the instance to the Serverless Logic Web Tools.

Prerequisites
Procedure
  1. To create an Apache Kafka instance in Red Hat Openshift Application and Data Services console, perform the following steps:

    You can skip this step if you already have an Apache Kafka instance.

    1. Go to Streams for Apache Kafka | Red Hat OpenShift Application and Data Services.

    2. Click Create Kafka instance.

    3. In the Create a Kafka instance window, enter the name for a Kafka instance.

      You can also fill the other fields or leave those fields with default values.

    4. Click Create instance.

    5. Reload the Kafka instances page for the list of instances to reflect the instance you created.

    6. Once the status of the Kafka instance you created is updated as Ready, click on the instance.

    7. Go to the Topics tab and create a new topic.

    8. Go to the Access tab, click Manage Access, and select All Accounts or the service account you created.

    9. Add the following permissions:

      • Consumer group is " * " | Allow All | All Accounts;

      • Topic is " * " | Allow All | All Accounts;

    10. Click on the menu on the top-right corner of the screen.

    11. Click Connection.

    12. Copy the value of Bootstrap server.

  2. If you already have a Kafka instance, find the value of Bootstrap server of your Kafka instance.

  3. In the Serverless Logic Web Tools web application, click on the Cog wheel (⚙️) on the top-right corner and go to the Streams for Apache Kafka tab.

  4. Enter the value of Bootstrap server.

  5. Enter the name of topic you created in the Topic field and click Apply.

    The content in the Streams for Apache Kafka tab updates and displays Your Streams for Apache Kafka information is set message.

The procedures in this document make the integration easy for you. However, you can also create specific service accounts, topics, and consumer groups.

Found an issue?

If you find an issue or any misleading information, please feel free to report it here. We really appreciate it!