Kafka Connections
Understand Kafka Connections and their usage in Lenses
Kafka connections represent a set of credentials for a Kafka cluster in a Lenses environment. The credentials are never stored in Lenses; the connection holds a reference to Kubernetes Service Accounts or Secrets.
Applications consume the credentials from the Kubernetes secret or service account to establish a connection to the Kafka cluster. Lenses does not store secrets for the application connection.
A connection is attached to a Lenses Environment, but we do not create the credentials or Kubernetes resources. Each connection has:
Name
The name of the environment the credentials connect to (Kafka cluster)
The Kubernetes namespace the service accounts or secrets are in.
Prerequisites
The Source Kafka cluster (environment) where the application will connect to, must have network access from the Kubernetes cluster. You can override the brokers configuration for the selected environment, if required.
You are responsible for creating the Kafka user (credentials) for the source Kafka cluster.
You are responsible for creating the Kubernetes secret or service account that contains the credentials for the application to connect to the source Kafka cluster.
AWS MSK clusters, using AWS IAM authentication, require the creation of an Kubernetes service account, with the necessary AWS IAM permissions to access the Kafka cluster.
Applications using this connection must be deployed in the same Kubernetes namespace as the secrets or service accounts to access them.
AWS MSK IAM
Kubernetes service accounts are used to support connections to AWS MSK IAM. A connection must be created with the name of a service account that has the required AWS IAM policies to connect to your AWS MSK cluster.
Creating a Kafka Connection
Select the Apps option from the left sidebar, either open the listing for Kafka Connectors and click Create Kafka Connection, or click create from the node in the tree panel.
Connections for Kafka to Kafka Replication
Last updated
Was this helpful?

