Create a Kafka Cluster with Azure Kubernetes Service

Create a Kafka cluster with external access with Azure Kubernetes Service (AKS)

Somnath Musib
Javarevisited
Published in
5 min readNov 3, 2022

--

Image Courtesy Unsplash

In this article, we’ll demonstrate to create an Apache Kafka cluster with Azure Kubernetes Service. We’ll also ensure the external applications not running in the AKS cluster can also access the Kafka topics.

Creating the K8s cluster with Azure Kubernetes Service

Let us first create a two node Kubernetes (K8s) cluster with AKS. Browse to Kubernetes Serviecs page in the Azure console and click on Create a Kubernetes cluster link:

Create a Kubernetes Cluster

Next, create a new resource group and select the other parameters such as region, node types etc.:

Creating a Resource Group

Next, configure the Node pools based on your specific need or go ahead with the default one as shown below. Once done, click on the Review + create button. This takes a while to create the cluster:

--

--

Somnath Musib
Javarevisited

Software Developer, Cloud Architect | Author "Spring Boot In Practice" . Find more at https://musibs.github.io