DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Kafka Connect on Kubernetes The Easy Way!

4 years ago dzone.com

Summary: This is a summary of an article originally published by the source. Read the full original article here →

This is a tutorial that shows how to set up and use Kafka Connect on Kubernetes using Strimzi, with the help of an example.

Although it's not too hard to deploy a Kafka Connect cluster on Kubernetes (just "DIY"!), I love the fact that Strimzi enables a Kubernetes-native way of doing this using the Operator pattern with the help of Custom Resource Definitions.

Before you proceed, clone the GitHub projectKafka Connect will need to reference an existing Kafka cluster (which in this case is Azure Event Hubs).

In this case its a single Kafka endpoint for Azure Event Hubs (yes, that's all you need!) config is just good old Kafka Connect configuration similar to what you would use in connect-distributed.propertiesThe authentication section simply refers to a Kubernetes Secret.

Here the definition of our connector: Just like we did before, let's understand what each component means: This is a KafkaConnector resource (specified by kind) whose name is my-source-connectorThis is where we refer to the Kafka Connect cluster - remember this annotation in the Kafka Connect definition shown above?

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com