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 Kogito 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.
-
You have access to the Red Hat OpenShift Application and Data Services console.
-
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.
-
Go to Service Accounts | Red Hat OpenShift Application and Data Services.
-
Click Create service account.
-
In the Create a service account window, enter a service account name in the Short description field.
-
Click Create.
A modal displaying your Client ID and Client Secret appears.
-
Copy and save the Client ID and Client Secret.
-
Check the I have copied the client ID and secret checkbox and click Close.
-
-
If you already have a service account, find your Client ID and Client Secret.
-
In the Serverless Logic Web Tools, click on the Cog wheel (⚙️) on the top-right corner and go to the Service Account tab.
-
Enter your Client ID and Client Secret in the respective fields.
-
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.
-
You have access to the Red Hat OpenShift Application and Data Services console.
-
You have created a service account.
For information about creating a service account, see Creating a service account in Red Hat OpenShift application and Data Services.
-
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.
-
Go to Service Registry | Red Hat OpenShift Application and Data Services.
-
Click Create Service Registry instance button.
-
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.
-
Find the Service Registry instance you created in the list and click on the instance.
-
Go to the Settings tab and click on Grant access.
-
In the drop-down, select the service account you created in the previous procedure.
-
Select a role for your service account.
You must select the role as Manager or Administrator to have the read and write access.
-
Click Save.
-
Click on the menu on the top-right corner of the screen.
-
Click Connection.
A drawer opens containing the required connection and authentication information.
-
Copy the value of Core Registry API.
-
-
If you already have a Service Registry, find the value of Core Registry API of your Service Registry.
-
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.
-
Enter a name for your registry.
You can enter the same name that you used while creating the Service Registry instance.
-
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.
-
You have access to the Red Hat OpenShift Application and Data Services console.
-
You have created a service account.
For information about creating a service account, see Creating a service account in Red Hat OpenShift application and Data Services.
-
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.
-
Go to Streams for Apache Kafka | Red Hat OpenShift Application and Data Services.
-
Click Create Kafka instance.
-
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.
-
Click Create instance.
-
Reload the Kafka instances page for the list of instances to reflect the instance you created.
-
Once the status of the Kafka instance you created is updated as Ready, click on the instance.
-
Go to the Topics tab and create a new topic.
-
Go to the Access tab, click Manage Access, and select All Accounts or the service account you created.
-
Add the following permissions:
-
Consumer group is " * " | Allow All | All Accounts;
-
Topic is " * " | Allow All | All Accounts;
-
-
Click on the menu on the top-right corner of the screen.
-
Click Connection.
-
Copy the value of Bootstrap server.
-
-
If you already have a Kafka instance, find the value of Bootstrap server of your Kafka instance.
-
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.
-
Enter the value of Bootstrap server.
-
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!