Book Image

Hands-On Kubernetes on Azure - Second Edition

By : Nills Franssens, Shivakumar Gopalakrishnan, Gunther Lenz
Book Image

Hands-On Kubernetes on Azure - Second Edition

By: Nills Franssens, Shivakumar Gopalakrishnan, Gunther Lenz

Overview of this book

From managing versioning efficiently to improving security and portability, technologies such as Kubernetes and Docker have greatly helped cloud deployments and application development. Starting with an introduction to Docker, Kubernetes, and Azure Kubernetes Service (AKS), this book will guide you through deploying an AKS cluster in different ways. You’ll then explore the Azure portal by deploying a sample guestbook application on AKS and installing complex Kubernetes apps using Helm. With the help of real-world examples, you'll also get to grips with scaling your application and cluster. As you advance, you'll understand how to overcome common challenges in AKS and secure your application with HTTPS and Azure AD (Active Directory). Finally, you’ll explore serverless functions such as HTTP triggered Azure functions and queue triggered functions. By the end of this Kubernetes book, you’ll be well-versed with the fundamentals of Azure Kubernetes Service and be able to deploy containerized workloads on Microsoft Azure with minimal management overhead.
Table of Contents (16 chapters)
1
Section 1: The Basics
4
Section 2: Deploying on AKS
10
Section 3: Leveraging advanced Azure PaaS services
15
Index

Using Azure Event Hubs

Running Kafka by yourself on a cluster is possible but can be hard to run for production usage. In this section, we will transfer the responsibility of maintaining a Kafka cluster to Azure Event Hubs. Event Hubs is a fully managed, real-time data ingestion service. It has native support for the Kafka protocol, so, with minor modifications, we can update our application from using a local Kafka instance to the scalable Azure Event Hubs instance.

In the following sections, we will do the following:

  • Create the event hub via the portal and gather the required details to connect our microservice-based application
  • Modify the Helm chart to use the newly created event hub

Let's start by creating the event hub.

Creating the event hub

In this section, we will create the Azure event hub. We will use this event hub later to stream the new messages to. Perform the following steps to create the event hub:

  1. To create the event hub on...