Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Latest commit

 

History

History
84 lines (47 loc) · 4.21 KB

kafkaSupport.md

File metadata and controls

84 lines (47 loc) · 4.21 KB

Red Hat OpenShift Streams For Apache Kafka support

Installation

You can either:

  1. search for and install Red Hat OpenShift Application Services directly from the Extensions view, it will automatically install its dependencies, Tools for Apache Kafka and Red Hat Authentication
  2. in the Kafka explorer from Tools for Apache Kafka, click on the Discover Kafka Providers command, which will automatically perform a search for Kafka providers (see option 1).

Adding an existing cluster

Once Red Hat OpenShift Application Services is installed, open the Kafka view. Clicking on the Add new cluster button (or +) in the Kafka Explorer will bring up the options to create new clusters. Select Red Hat OpenShift Streams For Apache Kafka:

You will be asked to log into your Red Hat account first:

This will open a browser page to sign into https://sso.redhat.com. Once you signed-in or created an account, your session token will be stored in the IDE, so it can be reused (and refreshed) if necessary.

Signed into Red Hat

This first sign-in operation will allow the discovery of your existing Red Hat OpenShift Streams For Apache Kafka clusters.

If no clusters have been created yet, a pop-up will let you create a new remote custer or open the dashboard:

If you already created your Apache Kafka cluster, the extension will require to you to sign into a second SSO, so it can connect to that cluster via SASL/OAUTHBEARER.

That second sign-in is transparent though, you won't need to manually log in.

Signed into Red Hat

Finally, your cluster(s) will automatically be added to the Kafka Explorer.

Here's an example of the workflow, when the user already logged in their Red Hat account:

Please read the Tools for Apache Kafka documentation and learn how to manage your Kafka clusters and topics and how to produce or consume messages.

Create a new remote cluster

If you want to create a new remote cluster, you can do so by clicking on the Create new remote cluster button, after trying to discover existing clusters. You will then need to select:

  • a cluster name,
  • the cloud provider (only Amazon Web Services is available at the moment),
  • the cloud region (only US East, N. Virginia is available at the moment),
  • availability zones (only Multi is available at the moment).

Creating the cluster usually takes 3 to 4 minutes. A progress dialog will be displayed while the cluster is being created. In the meantime, the web dashboard will be opened to show you the status of the cluster.

Here's an example of the workflow:

Alternatively, you can also create a remote cluster from the Red Hat: Create a Red Hat OpenShift Streams For Apache Kafka cluster command, available from the command palette (F1):

Red Hat OpenShift Streams For Apache Kafka specific menus

Red Hat OpenShift Streams For Apache Kafka clusters display specific menus when you right-click on them:

You can either open the Dashboard:

Or delete the remote cluster:

About ephemeral clusters

Please be aware ephemeral Red Hat OpenShift Streams For Apache Kafka clusters are not automatically purged from the Kafka settings after they have been deprovisioned. You will need to delete them manually from the Kafka Explorer.