Access Kafka Outside the Cluster

This page describes how to access Kafka from outside the cluster.

By default the Kafka broker is only available from within the cluster, therefore you cannot access it from external applications.

You can enable external access from the Kafka configuration.

Before you begin

You need to have a UMH cluster. If you do not already have a cluster, you can create one by using the Management Console .

Enable external access from Kafka configuration

  1. From UMHLens / OpenLens, go to Helm > Releases.

  2. Click on the Upgrade button.

  3. Search for the kafka section and edit the following values:

    ...
    kafka:
    ...
      externalAccess:
        autoDiscovery:
          enabled: true
        ...
        enabled: true
      ...
      rbac:
        create: true
    ...
    
  4. Click Upgrade.

To verify that the LoadBalancer service is created, go to Network > Services and search for united-manufacturing-hub-kafka-0-external.

Now you can connect to Kafka from external applications using the node IP and the port 9094.

What’s next

Last modified May 5, 2023: feat: finishing touches (1147002)