strimzi-kafka-operator

by KvalitetsIT

Helm chartv0.36.1App 0.36.1Verified publisher

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.

ParameterDescriptionDefault
replicasNumber of replicas of the cluster operator1
watchNamespacesComma separated list of additional namespaces for the strimzi-operator to watch[]
watchAnyNamespaceWatch the whole Kubernetes cluster (all namespaces)false
defaultImageRegistryDefault image registry for all the imagesquay.io
defaultImageRepositoryDefault image registry for all the imagesstrimzi
defaultImageTagDefault image tag for all the images except Kafka Bridge0.36.1
image.registryOverride default Cluster Operator image registrynil
image.repositoryOverride default Cluster Operator image repositorynil
image.nameCluster Operator image namecluster-operator
image.tagOverride default Cluster Operator image tagnil
image.digestOverride Cluster Operator image tag with digestnil
image.imagePullPolicyImage pull policy for all pods deployed by Cluster OperatorIfNotPresent
image.imagePullSecretsList of Docker registry pull secrets[]
fullReconciliationIntervalMsFull reconciliation interval in milliseconds120000
operationTimeoutMsOperation timeout in milliseconds300000
operatorNamespaceLabelsLabels of the namespace where the operator runsnil
podSecurityContextCluster Operator pod's security contextnil
priorityClassNameCluster Operator pod's priority class namenil
securityContextCluster Operator container's security contextnil
rbac.createWhether to create RBAC related resourcesyes
serviceAccountCreateWhether to create a service accountyes
serviceAccountCluster Operator's service accountstrimzi-cluster-operator
extraEnvsExtra environment variables for the Cluster operator container[]
kafka.image.registryOverride default Kafka image registrynil
kafka.image.repositoryOverride default Kafka image repositorynil
kafka.image.nameKafka image namekafka
kafka.image.tagPrefixOverride default Kafka image tag prefixnil
kafka.image.tagOverride default Kafka image tag and ignore suffixnil
kafka.image.digestOverride Kafka image tag with digestnil
kafkaConnect.image.registryOverride default Kafka Connect image registrynil
kafkaConnect.image.repositoryOverride default Kafka Connect image repositorynil
kafkaConnect.image.nameKafka Connect image namekafka
kafkaConnect.image.tagPrefixOverride default Kafka Connect image tag prefixnil
kafkaConnect.image.tagOverride default Kafka Connect image tag and ignore suffixnil
kafkaConnect.image.digestOverride Kafka Connect image tag with digestnil
kafkaMirrorMaker.image.registryOverride default Kafka Mirror Maker image registrynil
kafkaMirrorMaker.image.repositoryOverride default Kafka Mirror Maker image repositorynil
kafkaMirrorMaker.image.nameKafka Mirror Maker image namekafka
kafkaMirrorMaker.image.tagPrefixOverride default Kafka Mirror Maker image tag prefixnil
kafkaMirrorMaker.image.tagOverride default Kafka Mirror Maker image tag and ignore suffixnil
kafkaMirrorMaker.image.digestOverride Kafka Mirror Maker image tag with digestnil
cruiseControl.image.registryOverride default Cruise Control image registrynil
cruiseControl.image.repositoryOverride default Cruise Control image repositorynil
cruiseControl.image.nameCruise Control image namekafka
cruiseControl.image.tagPrefixOverride default Cruise Control image tag prefixnil
cruiseControl.image.tagOverride default Cruise Control image tag and ignore suffixnil
cruiseControl.image.digestOverride Cruise Control image tag with digestnil
topicOperator.image.registryOverride default Topic Operator image registrynil
topicOperator.image.repositoryOverride default Topic Operator image repositorynil
topicOperator.image.nameTopic Operator image nameoperator
topicOperator.image.tagOverride default Topic Operator image tagnil
topicOperator.image.digestOverride Topic Operator image tag with digestnil
userOperator.image.registryOverride default User Operator image registrynil
userOperator.image.repositoryOverride default User Operator image repositorynil
userOperator.image.nameUser Operator image nameoperator
userOperator.image.tagOverride default User Operator image tagnil
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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartstrimzi-kafka-operator is pinned at v0.36.1 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