kafka

by joaquinito2051

Helm chartv19.1.3App 3.3.1

Apache Kafka is a distributed streaming platform designed to build real-time pipelines and can be used as a message broker or as a replacement for a log aggregation solution for big data applications.

About this chart

Apache Kafka packaged by Bitnami

Apache Kafka is a distributed streaming platform designed to build real-time pipelines and can be used as a message broker or as a replacement for a log aggregation solution for big data applications.

Overview of Apache Kafka

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

helm repo add my-repo https://charts.bitnami.com/bitnami
helm install my-release my-repo/kafka

Introduction

This chart bootstraps a Kafka deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name my-release:

helm repo add my-repo https://charts.bitnami.com/bitnami
helm install my-release my-repo/kafka

These commands deploy Kafka on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
clusterDomainDefault Kubernetes cluster domaincluster.local
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the statefulset["sleep"]
diagnosticMode.argsArgs to override all containers in the statefulset["infinity"]

Kafka parameters

NameDescriptionValue
image.registryKafka image registrydocker.io
image.repositoryKafka image repositorybitnami/kafka
image.tagKafka image tag (immutable tags are recommended)3.3.1-debian-11-r11
image.digestKafka image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyKafka image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugSpecify if debug values should be setfalse
configConfiguration file for Kafka. Auto-generated based on other parameters when not specified""
existingConfigmapConfigMap with Kafka Configuration""
log4jAn optional log4j.properties file to overwrite the default of the Kafka brokers""
existingLog4jConfigMapThe name of an existing ConfigMap containing a log4j.properties file""
heapOptsKafka Java Heap size-Xmx1024m -Xms1024m
deleteTopicEnableSwitch to enable topic deletion or notfalse
autoCreateTopicsEnableSwitch to enable auto creation of topics. Enabling auto creation of topics not recommended for production or similar environmentstrue
logFlushIntervalMessagesThe number of messages to accept before forcing a flush of data to disk_10000
logFlushIntervalMsThe maximum amount of time a message can sit in a log before we force a flush1000
logRetentionBytesA size-based retention policy for logs_1073741824
logRetentionCheckIntervalMsThe interval at which log segments are checked to see if they can be deleted300000
logRetentionHoursThe minimum age of a log file to be eligible for deletion due to age168
logSegmentBytesThe maximum size of a log segment file. When this size is reached a new log segment will be created_1073741824
logsDirsA comma separated list of directories in which kafka's log data is kept/bitnami/kafka/data
maxMessageBytesThe largest record batch size allowed by Kafka_1000012
defaultReplicationFactorDefault replication factors for automatically created topics1
offsetsTopicReplicationFactorThe replication factor for the offsets topic1
transactionStateLogReplicationFactorThe replication factor for the transaction topic1
transactionStateLogMinIsrOverridden min.insync.replicas config for the transaction topic1
numIoThreadsThe number of threads doing disk I/O8
numNetworkThreadsThe number of threads handling network requests3
numPartitionsThe default number of log partitions per topic1
numRecoveryThreadsPerDataDirThe number of threads per data directory to be used for log recovery at startup and flushing at shutdown1
socketReceiveBufferBytesThe receive buffer (SO_RCVBUF) used by the socket server102400
socketRequestMaxBytesThe maximum size of a request that the socket server will accept (protection against OOM)_104857600
socketSendBufferBytesThe send buffer (SO_SNDBUF) used by the socket server102400
zookeeperConnectionTimeoutMsTimeout in ms for connecting to Z

Deploy kafka with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kafka on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkafka is pinned at v19.1.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply