Configuring the Strimzi Cluster Operator
Learn how to configure an existing deployment of the Strimzi Cluster Operator with helm upgrade.
The Strimzi Cluster Operator is deployed when you install Strimzi to your Kubernetes cluster.
During installation you can configure the Cluster Operator. If required, you can make
configuration updates following installation. This is done with helm upgrade
command using the --reuse-values option together with the -f
(--values) or --set options.
helm upgrade [***RELEASE***] [***CHART***] \
--namespace [***NAMESPACE***] \
(--set '[***KEY***]=[***VALUE***]' | -f [***MY-VALUES.YAML***]) \
--reuse-values
- Ensure that
[***RELEASE***]and [***CHART***] are the same as the ones you used during installation. You can usehelm listto list currently installed releases and charts. - Use
--setif you want to update properties directly from the command line. Helm supports various--setoptions like--set-file,--set-string, and others. You can use any of these options. - Use
-f(--values)if you want to pass a file containing your configuration updates. - The
--reuse-valuesoption instructs Helm to merge existing values with new ones. You use this option when you want to update an existing configuration
Configurable properties
helm show
readme.
helm show readme [***CHART***]Configuring watched namespaces
By default, the Strimzi Cluster Operator watches and manages the Kafka clusters that are deployed in the same namespace as the Strimzi Cluster Operator. However, you can configure it to watch selected namespaces or watch all namespaces. This allows you to manage multiple Kafka clusters deployed in different namespaces using a single Strimzi Cluster Operator installation.
watchNamespaces property. Delimit
each namespace with a
comma.helm upgrade [***RELEASE***] [***CHART***] \
--namespace [***NAMESPACE***] \
--set 'watchNamespaces={[***NAMESPACE A***],[***NAMESPACE B***]}' \
--reuse-valueswatchAnyNamespace to
true.helm upgrade [***RELEASE***] [***CHART***] \
--namespace [***NAMESPACE***] \
--set 'watchAnyNamespace=true' \
--reuse-valuesIncreasing Strimzi Cluster Operator memory
If you want a single installation of the Strimzi Cluster Operator to watch and manage more than 20 Kafka clusters, you must increase the memory and heap allocated for the Strimzi Cluster Operator. Otherwise, you will encounter out of memory and heap related errors. To do this, you configure memory-related properties.
-XX:MinRAMPercentage and
-XX:MaxRAMPercentage Java parameters. Additionally, configure
resources.limits.memory and
resources.requests.memory Helm properties.The following example contains memory settings recommended by Cloudera for a deployment with more than 20 Kafka clusters. You can fine-tune your setting as needed.
helm upgrade [***RELEASE***] [***CHART***] \
--namespace [***NAMESPACE***] \
--set 'extraEnvs[0].name=JAVA_OPTS' \
--set 'extraEnvs[0].value=-XX:MinRAMPercentage=25 -XX:MaxRAMPercentage=70' \
--set 'resources.limits.memory=600Mi' \
--set 'resources.requests.memory=600Mi' \
--reuse-values-XX:MinRAMPercentage=15-XX:MaxRAMPercentage=20resources.limits.memory=384Miresources.requests.memory=384Mi
