kafka

by kubelauncher

Helm chartv0.1.30App 3.9.0Apache-2.0Verified publisher

Apache Kafka distributed streaming platform

About this chart

kafka

Apache Kafka distributed streaming platform

TL;DR

helm repo add kubelauncher https://kubelauncher.github.io/charts
helm install my-kafka kubelauncher/kafka

Or via OCI:

helm install my-kafka oci://ghcr.io/kubelauncher/charts/kafka

Introduction

This chart deploys Apache Kafka on Kubernetes using the kubelauncher/kafka Docker image. It runs in KRaft mode (no ZooKeeper dependency) with an embedded controller.

The values structure follows the same conventions as popular community charts, allowing easy migration.

Architecture

Single node (default)

A single Kafka broker acting as both broker and controller. Suitable for development and testing.

helm install my-kafka kubelauncher/kafka

Cluster

Scale by increasing replicaCount. Each broker acts as both a broker and a controller. KRaft handles leader election and metadata management without ZooKeeper.

helm install my-kafka kubelauncher/kafka \
  --set replicaCount=3

The client port is 9092 and the controller port is 9093. Persistence is enabled by default with 8Gi volumes.

Installing the Chart

helm repo add kubelauncher https://kubelauncher.github.io/charts
helm install my-kafka kubelauncher/kafka \
  --set replicaCount=3

Or via OCI:

helm install my-kafka oci://ghcr.io/kubelauncher/charts/kafka \
  --set replicaCount=3

Uninstalling the Chart

helm uninstall my-kafka

Values

KeyTypeDefaultDescription
affinityobject{}
clusterDomainstring"cluster.local"
commonAnnotationsobject{}
commonLabelsobject{}
containerPorts.clientint9092
containerPorts.controllerint9093
containerSecurityContext.allowPrivilegeEscalationboolfalse
containerSecurityContext.capabilities.drop[0]string"ALL"
containerSecurityContext.enabledbooltrue
containerSecurityContext.readOnlyRootFilesystemboolfalse
containerSecurityContext.runAsGroupint1001
containerSecurityContext.runAsNonRootbooltrue
containerSecurityContext.runAsUserint1001
containerSecurityContext.seccompProfile.typestring"RuntimeDefault"
enableIntegerBrokerIdboolfalse
enableServiceLinksboolfalse
extraDeploylist[]
extraEnvVarslist[]
extraVolumeMountslist[]
extraVolumeslist[]
fullnameOverridestring""
global.defaultStorageClassstring""
global.imagePullSecretslist[]
global.imageRegistrystring""
global.storageClassstring""
heapOptsstring"-Xmx512m -Xms512m"
image.digeststring"sha256:1cd80b53f4fdbf1125b42b0e1989206f9acfbb1dc7bf224b56a5d2e010d03546"
image.pullPolicystring"Always"
image.pullSecretslist[]
image.registrystring"ghcr.io"
image.repositorystring"kubelauncher/kafka"
image.tagstring"3.9.0"
initContainerslist[]
kraft.clusterIdstring""
kraft.controllerQuorumVotersstring""
kraft.processRolesstring"broker,controller"
livenessProbe.enabledbooltrue
livenessProbe.failureThresholdint6
livenessProbe.initialDelaySecondsint30
livenessProbe.periodSecondsint10
livenessProbe.successThresholdint1
livenessProbe.timeoutSecondsint5
logDirsstring"/data/kafka"
nameOverridestring""
namespaceOverridestring""
networkPolicy.additionalRuleslist[]
networkPolicy.allowExternalbooltrue
networkPolicy.enabledboolfalse
nodeSelectorobject{}
persistence.accessModes[0]string"ReadWriteOnce"
persistence.annotationsobject{}
persistence.enabledbooltrue
persistence.existingClaimstring""
persistence.labelsobject{}
persistence.mountPathstring"/data/kafka"
persistence.sizestring"8Gi"
persistence.storageClassstring""
podAnnotationsobject{}
podLabelsobject{}
podManagementPolicystring"Parallel"
podSecurityContext.enabledbooltrue
podSecurityContext.fsGroupint1001
readinessProbe.enabledbooltrue
readinessProbe.failureThresholdint6
readinessProbe.initialDelaySecondsint10
readinessProbe.periodSecondsint10
readinessProbe.successThresholdint1
readinessProbe.timeoutSecondsint5
replicaCountint1
resourcesobject{}
resourcesPresetstring"small"
service.annotationsobject{}
service.clusterIPstring""
service.headless.annotationsobject{}
service.labelsobject{}
service.nodePorts.clientstring""
service.nodePorts.controllerstring""
service.ports.clientint9092
service.ports.controllerint9093
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.automountServiceAccountTokenboolfalse
serviceAccount.createbooltrue
serviceAccount.namestring""
sidecarslist[]
startupProbe.enabledbooltrue
startupProbe.failureThresholdint30
startupProbe.initialDelaySecondsint10
startupProbe.periodSecondsint10
startupProbe.successThresholdint1
startupProbe.timeoutSecondsint5
tolerationslist[]

Maintainers

NameEmailUrl
kubelauncher[email protected]https://www.kubelauncher.com

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 v0.1.30 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