strimzi-kafka-operator
by RADAR-Base
Strimzi: Apache Kafka running on Kubernetes
About this chart
Strimzi: Apache Kafka on Kubernetes
Strimzi provides a way to run an Apache Kafka® cluster on Kubernetes or OpenShift in various deployment configurations. See our website for more details about the project.
!!! IMPORTANT !!!
- Support for ZooKeeper-based clusters and for migration from ZooKeeper-based clusters to KRaft has been removed. Please make sure all your clusters are using KRaft before upgrading to Strimzi 0.46.0 or newer!
- Support for MirrorMaker 1 has been removed. Please make sure to migrate to MirrorMaker 2 before upgrading to Strimzi 0.46 or newer.
- Strimzi EnvVar Configuration Provider (deprecated in Strimzi 0.38.0) and Strimzi MirrorMaker 2 Extensions (deprecated in Strimzi 0.28.0) plugins were removed from Strimzi container images. Please use the Apache Kafka EnvVarConfigProvider and Identity Replication Policy instead.
Introduction
This chart bootstraps the Strimzi Cluster Operator Deployment, Cluster Roles, Cluster Role Bindings, Service Accounts, and Custom Resource Definitions for running Apache Kafka on Kubernetes cluster using the Helm package manager.
Supported Features
- Manages the Kafka Cluster - Deploys and manages all of the components of this complex application, including dependencies like Apache ZooKeeper® that are traditionally hard to administer.
- KRaft support - Allows running Apache Kafka clusters in the KRaft mode (without ZooKeeper).
- Includes Kafka Connect - Allows for configuration of common data sources and sinks to move data into and out of the Kafka cluster.
- Topic Management - Creates and manages Kafka Topics within the cluster.
- User Management - Creates and manages Kafka Users within the cluster.
- Connector Management - Creates and manages Kafka Connect connectors.
- Includes Kafka MirrorMaker - Allows for mirroring data between different Apache Kafka® clusters.
- Includes HTTP Kafka Bridge - Allows clients to send and receive messages through an Apache Kafka® cluster via the HTTP protocol.
- Includes Cruise Control - Automates the process of balancing partitions across an Apache Kafka® cluster.
- Auto-rebalancing when scaling - Automatically rebalance the Kafka cluster after a scale-up or before a scale-down.
- Tiered storage - Offloads older, less critical data to a lower-cost, lower-performance storage tier, such as object storage.
- Prometheus monitoring - Built-in support for monitoring using Prometheus.
- Grafana Dashboards - Built-in support for loading Grafana® dashboards via the grafana_sidecar
Upgrading your Clusters
To upgrade the Strimzi operator, you can use the helm upgrade command.
The helm upgrade command does not upgrade the Custom Resource Definitions.
Update the CRDs manually after upgrading the Cluster Operator.
You can access the CRDs from our GitHub release page or find them in the crd subdirectory inside the Helm Chart.
For example, when upgrading to Strimzi 0.46.0, you can do:
kubectl apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.46.0/strimzi-crds-0.46.0.yaml
The Strimzi Operator understands how to run and upgrade between a set of Kafka versions. When specifying a new version in your config, check to make sure you aren't using any features that may have been removed. See the upgrade guide for more information.
Documentation
Documentation to all releases can be found on our website.
Getting help
If you encounter any issues while using Strimzi, you can get help using:
License
Strimzi is licensed under the Apache License, Version 2.0.
Prerequisites
- Kubernetes 1.25+
Installing the Chart
To install the chart with the release name my-strimzi-cluster-operator:
helm install my-strimzi-cluster-operator oci://quay.io/strimzi-helm/strimzi-kafka-operator
The command deploys the Strimzi Cluster Operator on the Kubernetes cluster with the default configuration. The configuration section lists the parameters that can be configured during installation.
Uninstalling the Chart
To uninstall/delete the my-strimzi-cluster-operator deployment:
helm delete my-strimzi-cluster-operator
The command removes all the Kubernetes components associated with the operator and deletes the release.
Configuration
The following table lists the configurable parameters of the Strimzi chart and their default values. Runtime configuration of Kafka and other components are defined within their respective Custom Resource Definitions. See the documentation for more details.
| Parameter | Description | Default |
|---|---|---|
replicas | Number of replicas of the cluster operator | 1 |
revisionHistoryLimit | Number of replicaSet to keep of the operator deployment | 10 |
watchNamespaces | Comma separated list of additional namespaces for the strimzi-operator to watch | [] |
watchAnyNamespace | Watch the whole Kubernetes cluster (all namespaces) | false |
defaultImageRegistry | Default image registry for all the images | quay.io |
defaultImageRepository | Default image registry for all the images | strimzi |
defaultImageTag | Default image tag for all the images except Kafka Bridge | 0.46.0 |
image.registry | Override default Cluster Operator image registry | nil |
image.repository | Override default Cluster Operator image repository | nil |
image.name | Cluster Operator image name | operator |
image.tag | Override default Cluster Operator image tag | nil |
image.digest | Override Cluster Operator image tag with digest | nil |
image.imagePullPolicy | Image pull policy for all pods deployed by Cluster Operator | IfNotPresent |
image.imagePullSecrets | List of Docker registry pull secrets | [] |
fullReconciliationIntervalMs | Full reconciliation interval in milliseconds | 120000 |
leaderElection.enable | Whether to enable leader election | true |
operationTimeoutMs | Operation timeout in milliseconds | 300000 |
operatorNamespaceLabels | Labels of the namespace where the operator runs | nil |
podSecurityContext | Cluster Operator pod's security context | nil |
priorityClassName | Cluster Operator pod's priority class name | nil |
securityContext | Cluster Operator container's security context | nil |
rbac.create | Whether to create RBAC related resources | yes |
serviceAccountCreate | Whether to create a service account | yes |
serviceAccount | Cluster Operator's service account | strimzi-cluster-operator |
podDisruptionBudget.enabled | Whether to enable the podDisruptionBudget feature | false |
podDisruptionBudget.minAvailable | Default value for how many pods must be running in a cluster | 1 |
podDisruptionBudget.maxUnavailable | Default value for how many pods can be down | nil |
extraEnvs | Extra environment variables for the Cluster operator container | [] |
kafka.image.registry | Override default Kafka image registry | nil |
kafka.image.repository | Override default Kafka image repository | nil |
kafka.image.name | Kafka image name | kafka |
kafka.image.tagPrefix | Override default Kafka image tag prefix | nil |
kafka.image.tag | Override default Kafka image tag and ignore suffix | nil |
kafka.image.digest | Override Kafka image tag with digest | nil |
kafkaConnect.image.registry | Override default Kafka Connect image registry | nil |
kafkaConnect.image.repository | Override default Kafka Connect image repository | nil |
kafkaConnect.image.name | Kafka Connect image name | kafka |
kafkaConnect.image.tagPrefix | Override default Kafka Connect image tag prefix | nil |
kafkaConnect.image.tag | Override default Kafka Connect image tag and ignore suffix | nil |
kafkaConnect.image.digest | Override Kafka Connect image tag with digest | nil |
cruiseControl.image.registry | Override default Cruise Control image registry | nil |
cruiseControl.image.repository | Override default Cruise Control image repository | nil |
cruiseControl.image.name | Cruise Control image name | kafka |
cruiseControl.image.tagPrefix | Override default Cruise Control image tag prefix | nil |
cruiseControl.image.tag | Override default Cruise Control image tag and ignore suffix | nil |
cruiseControl.image.digest | Override Cruise Control image tag with digest | nil |
topicOperator.image.registry | Override default Topic Operator image registry | nil |
topicOperator.image.repository | Override default Topic Operator image repository | nil |
topicOperator.image.name | Topic Operator image name | operator |
topicOperator.image.tag | Override |
Deploy strimzi-kafka-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has strimzi-kafka-operator 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 chartstrimzi-kafka-operator is pinned at v0.46.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