kafka
by kubelauncher
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
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| clusterDomain | string | "cluster.local" | |
| commonAnnotations | object | {} | |
| commonLabels | object | {} | |
| containerPorts.client | int | 9092 | |
| containerPorts.controller | int | 9093 | |
| containerSecurityContext.allowPrivilegeEscalation | bool | false | |
| containerSecurityContext.capabilities.drop[0] | string | "ALL" | |
| containerSecurityContext.enabled | bool | true | |
| containerSecurityContext.readOnlyRootFilesystem | bool | false | |
| containerSecurityContext.runAsGroup | int | 1001 | |
| containerSecurityContext.runAsNonRoot | bool | true | |
| containerSecurityContext.runAsUser | int | 1001 | |
| containerSecurityContext.seccompProfile.type | string | "RuntimeDefault" | |
| enableIntegerBrokerId | bool | false | |
| enableServiceLinks | bool | false | |
| extraDeploy | list | [] | |
| extraEnvVars | list | [] | |
| extraVolumeMounts | list | [] | |
| extraVolumes | list | [] | |
| fullnameOverride | string | "" | |
| global.defaultStorageClass | string | "" | |
| global.imagePullSecrets | list | [] | |
| global.imageRegistry | string | "" | |
| global.storageClass | string | "" | |
| heapOpts | string | "-Xmx512m -Xms512m" | |
| image.digest | string | "sha256:1cd80b53f4fdbf1125b42b0e1989206f9acfbb1dc7bf224b56a5d2e010d03546" | |
| image.pullPolicy | string | "Always" | |
| image.pullSecrets | list | [] | |
| image.registry | string | "ghcr.io" | |
| image.repository | string | "kubelauncher/kafka" | |
| image.tag | string | "3.9.0" | |
| initContainers | list | [] | |
| kraft.clusterId | string | "" | |
| kraft.controllerQuorumVoters | string | "" | |
| kraft.processRoles | string | "broker,controller" | |
| livenessProbe.enabled | bool | true | |
| livenessProbe.failureThreshold | int | 6 | |
| livenessProbe.initialDelaySeconds | int | 30 | |
| livenessProbe.periodSeconds | int | 10 | |
| livenessProbe.successThreshold | int | 1 | |
| livenessProbe.timeoutSeconds | int | 5 | |
| logDirs | string | "/data/kafka" | |
| nameOverride | string | "" | |
| namespaceOverride | string | "" | |
| networkPolicy.additionalRules | list | [] | |
| networkPolicy.allowExternal | bool | true | |
| networkPolicy.enabled | bool | false | |
| nodeSelector | object | {} | |
| persistence.accessModes[0] | string | "ReadWriteOnce" | |
| persistence.annotations | object | {} | |
| persistence.enabled | bool | true | |
| persistence.existingClaim | string | "" | |
| persistence.labels | object | {} | |
| persistence.mountPath | string | "/data/kafka" | |
| persistence.size | string | "8Gi" | |
| persistence.storageClass | string | "" | |
| podAnnotations | object | {} | |
| podLabels | object | {} | |
| podManagementPolicy | string | "Parallel" | |
| podSecurityContext.enabled | bool | true | |
| podSecurityContext.fsGroup | int | 1001 | |
| readinessProbe.enabled | bool | true | |
| readinessProbe.failureThreshold | int | 6 | |
| readinessProbe.initialDelaySeconds | int | 10 | |
| readinessProbe.periodSeconds | int | 10 | |
| readinessProbe.successThreshold | int | 1 | |
| readinessProbe.timeoutSeconds | int | 5 | |
| replicaCount | int | 1 | |
| resources | object | {} | |
| resourcesPreset | string | "small" | |
| service.annotations | object | {} | |
| service.clusterIP | string | "" | |
| service.headless.annotations | object | {} | |
| service.labels | object | {} | |
| service.nodePorts.client | string | "" | |
| service.nodePorts.controller | string | "" | |
| service.ports.client | int | 9092 | |
| service.ports.controller | int | 9093 | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.automountServiceAccountToken | bool | false | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| sidecars | list | [] | |
| startupProbe.enabled | bool | true | |
| startupProbe.failureThreshold | int | 30 | |
| startupProbe.initialDelaySeconds | int | 10 | |
| startupProbe.periodSeconds | int | 10 | |
| startupProbe.successThreshold | int | 1 | |
| startupProbe.timeoutSeconds | int | 5 | |
| tolerations | list | [] |
Maintainers
| Name | Url | |
|---|---|---|
| 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkafka is pinned at v0.1.30 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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