strimzi-kafka-operator
by KvalitetsIT
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 !!! Upgrading to Strimzi 0.32 and newer directly from Strimzi 0.22 and earlier is no longer possible. Please follow the documentation for more details.
!!! IMPORTANT !!! From Strimzi 0.36 on, we support only Kubernetes 1.21 and newer. Kubernetes versions 1.19 and 1.20 are no longer supported.
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.
- 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 Mirror Maker 1 and 2 - 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.
- 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.
Install the new 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.
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.21+
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 |
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.36.1 |
image.registry | Override default Cluster Operator image registry | nil |
image.repository | Override default Cluster Operator image repository | nil |
image.name | Cluster Operator image name | cluster-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 |
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 |
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 |
kafkaMirrorMaker.image.registry | Override default Kafka Mirror Maker image registry | nil |
kafkaMirrorMaker.image.repository | Override default Kafka Mirror Maker image repository | nil |
kafkaMirrorMaker.image.name | Kafka Mirror Maker image name | kafka |
kafkaMirrorMaker.image.tagPrefix | Override default Kafka Mirror Maker image tag prefix | nil |
kafkaMirrorMaker.image.tag | Override default Kafka Mirror Maker image tag and ignore suffix | nil |
kafkaMirrorMaker.image.digest | Override Kafka Mirror Maker 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 default Topic Operator image tag | nil |
topicOperator.image.digest | Override Topic Operator image tag with digest | nil |
userOperator.image.registry | Override default User Operator image registry | nil |
userOperator.image.repository | Override default User Operator image repository | nil |
userOperator.image.name | User Operator image name | operator |
userOperator.image.tag | Override default User Operator image tag | nil |
userOperator.image.digest |
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.36.1 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