kafka
[OpenSource 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.
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.
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.
TL;DR
REPO_NAME=xxl-job
helm repo add ${REPO_NAME} https://dellnoantechnp.github.io/helm-chart-xxl-job-admin/
helm install my-release ${REPO_NAME}/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. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.
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:
REPO_NAME=xxl-job
helm repo add ${REPO_NAME} https://dellnoantechnp.github.io/helm-chart-xxl-job-admin/
helm install my-release ${REPO_NAME}/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
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
clusterDomain | Default Kubernetes cluster domain | cluster.local |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the statefulset | ["sleep"] |
diagnosticMode.args | Args to override all containers in the statefulset | ["infinity"] |
Kafka parameters
| Name | Description | Value |
|---|---|---|
image.registry | Kafka image registry | docker.io |
image.repository | Kafka image repository | bitnami/kafka |
image.tag | Kafka image tag (immutable tags are recommended) | 3.2.0-debian-10-r4 |
image.pullPolicy | Kafka image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Specify if debug values should be set | false |
config | Configuration file for Kafka. Auto-generated based on other parameters when not specified | "" |
existingConfigmap | ConfigMap with Kafka Configuration | "" |
log4j | An optional log4j.properties file to overwrite the default of the Kafka brokers | "" |
existingLog4jConfigMap | The name of an existing ConfigMap containing a log4j.properties file | "" |
heapOpts | Kafka Java Heap size | -Xmx1024m -Xms1024m |
deleteTopicEnable | Switch to enable topic deletion or not | false |
autoCreateTopicsEnable | Switch to enable auto creation of topics. Enabling auto creation of topics not recommended for production or similar environments | true |
logFlushIntervalMessages | The number of messages to accept before forcing a flush of data to disk | _10000 |
logFlushIntervalMs | The maximum amount of time a message can sit in a log before we force a flush | 1000 |
logRetentionBytes | A size-based retention policy for logs | _1073741824 |
logRetentionCheckIntervalMs | The interval at which log segments are checked to see if they can be deleted | 300000 |
logRetentionHours | The minimum age of a log file to be eligible for deletion due to age | 168 |
logSegmentBytes | The maximum size of a log segment file. When this size is reached a new log segment will be created | _1073741824 |
logsDirs | A comma separated list of directories under which to store log files | /bitnami/kafka/data |
maxMessageBytes | The largest record batch size allowed by Kafka | _1000012 |
defaultReplicationFactor | Default replication factors for automatically created topics | 1 |
offsetsTopicReplicationFactor | The replication factor for the offsets topic | 1 |
transactionStateLogReplicationFactor | The replication factor for the transaction topic | 1 |
transactionStateLogMinIsr | Overridden min.insync.replicas config for the transaction topic | 1 |
numIoThreads | The number of threads doing disk I/O | 8 |
numNetworkThreads | The number of threads handling network requests | 3 |
numPartitions | The default number of log partitions per topic | 1 |
numRecoveryThreadsPerDataDir | The number of threads per data directory to be used for log recovery at startup and flushing at shutdown | 1 |
socketReceiveBufferBytes | The receive buffer (SO_RCVBUF) used by the socket server | 102400 |
socketRequestMaxBytes | The maximum size of a request that the socket server will accept (protection against OOM) | _104857600 |
socketSendBufferBytes | The send buffer (SO_SNDBUF) used by the socket server | 102400 |
zookeeperConnectionTimeoutMs | Timeout in ms for connecting to ZooKeeper | 6000 |
zookeeperChrootPath | Path which puts data under some path in the global ZooKeeper namespace |
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 v17.1.0 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