Upgrade Confluent Operator and Confluent Platform

Before you start the upgrade process, make sure your Kubernetes cluster is among the Supported Environments for the target version of Confluent Operator.

The examples in this guide use the following assumptions:

  • $VALUES_FILE refers to the configuration file you set up in Create the global configuration file.

  • To present simple and clear examples in the Operator documentation, all the configuration parameters are specified in the config file ($VALUES_FILE). However, in your production deployments, use the --set or --set-file option when applying sensitive data with Helm. For example:

    helm upgrade --install kafka \
     --set kafka.services.mds.ldap.authentication.simple.principal="cn=mds\,dc=test\,dc=com" \
     --set kafka.services.mds.ldap.authentication.simple.credentials=”Developer!” \
     --set kafka.enabled=true
  • operator is the namespace that Confluent Platform is deployed in.

  • All commands are executed in the helm directory under the directory Confluent Operator was downloaded to.

Currently, Confluent Operator does not support the direct upgrade from Confluent Platform 5.3.x to or from 5.4.x to 6.1.x. If you are upgrading to Confluent Platform 6.1.x, perform a rolling upgrade as following:

  1. Upgrade Confluent Platform from 5.3.x to 5.4.x, specifically running the pre_upgrade_cp54_zookeeper.sh script before upgrading.
  2. Upgrade Confluent Platform from 5.4.x to 5.5.x.
  3. Upgrade Confluent Platform from 5.5.x to 6.0.x.
  4. Upgrade Confluent Platform from 6.0.x to 6.1.x as described in the following sections.

Upgrade Confluent Platform version 6.0.x to 6.1.x


Upgrading Confluent Platform to 6.1 will roll the cluster as resources configuration was introduced in the init container of Operator 1.7.2.

Download Confluent Operator 1.7.2

As the first step in the migration and upgrade process, Download and extract the Operator bundle.

Prepare for upgrade

In general, it is best to minimize the number of changes occurring at the same time. For the purposes of upgrading from Confluent Platform 6.0 to 6.1, we recommend that you perform this upgrade separate from making other changes to your clusters, such as scaling up, changing configuration, or rotating credentials.

Upgrade Confluent Operator

  1. Change the working directory to the Confluent Operator 1.7.2 root directory.

  2. Update the Confluent Platform CustomResourceDefinitions (CRDs).

    Confluent Operator can manage the installation and update of the Confluent Platform CRDs on your behalf. You can opt out of this with either of the below options:

    • Directly by specifying operator.installClusterResources: false in the configuration file ($VALUES_FILE)
    • Indirectly by deploying Operator in the namespaced mode with operator.namespaced: true in the configuration file ($VALUES_FILE)

    If you have opted out of Operator-managed CRDs and instead manage the Confluent Platform CRDs separately, you must update the CRDs by running the following command from the root of the Operator directory:

    kubectl apply -f ./resources/crds/
  3. Run the disable_reconcile.sh script for each namespace where you have deployed Confluent Platform components.

    If you do not disable the reconcile operations before you run the upgrade, components will begin rolling restarts and some pods may go into CrashLoopBackOff status.

    The script disables reconcile operations so that Confluent Platform components do not restart. Only Operator restarts during this upgrade.

    ./scripts/upgrade/disable_reconcile.sh <namespace>

    Your output should resemble the following:

    ./scripts/upgrade/disable_reconcile.sh <namespace>
    physicalstatefulcluster.operator.confluent.cloud/connectors annotated
    physicalstatefulcluster.operator.confluent.cloud/controlcenter annotated
    physicalstatefulcluster.operator.confluent.cloud/kafka annotated
    physicalstatefulcluster.operator.confluent.cloud/ksql annotated
    physicalstatefulcluster.operator.confluent.cloud/replicator annotated
    physicalstatefulcluster.operator.confluent.cloud/schemaregistry annotated
    physicalstatefulcluster.operator.confluent.cloud/zookeeper annotated
  4. Retrieve the Operator Helm release name, <operator-helm-release-name>, by running the following command:

    helm ls

    <operator-helm-release-name> is the NAME displayed in the output.

    NAME        REVISION    UPDATED              STATUS   CHART                APP VERSION    NAMESPACE
    operator    2           Mon Jan 6            DEPLOYED confluent-operator   1.0            operator
  5. Upgrade Operator by running the following command from the helm directory under the Confluent Operator 1.7.2 directory:

    helm upgrade --install <operator-helm-release-name> \
      ./confluent-operator \
      --values $VALUES_FILE \
      --set operator.enabled=true \
      --namespace <namespace> \

Upgrade ZooKeeper, Kafka, and other Confluent Platform components

Complete the following steps for ZooKeeper, Kafka, and other components, specifically Schema Registry, Connect, Replicator, and Confluent Control Center.

Run the helm upgrade commands from the helm directory under the Confluent Operator 1.7.2 directory.


Each cluster will roll during this procedure.

  1. For each Confluent Platform component cluster, update the desired configuration and version of the cluster:

    helm upgrade --install <component-helm-release-name> \
       ./confluent-operator \
       --values $VALUES_FILE \
       --set <component>.enabled=true \
       --namespace <namespace> \
  2. Get <component-name> from the configuration file ($VALUES_FILE):

      name: # This value
  3. For each Confluent Platform component cluster, enable reconciliation, using <component-name> from the previous step, so that Operator applies the desired configuration and updates the cluster:

    ./scripts/upgrade/enable_reconcile.sh <namespace> <component-name>

    For example:

    ./scripts/upgrade/enable_reconcile.sh operator kafka

Update a single component image

You can update a single Confluent Platform component image version without affecting cluster performance.

Special care is taken when upgrading Kafka brokers. The upgrade process verifies topic leader re-election and zero under-replicated partitions before beginning the upgrade process for the next Kafka broker. This ensures that the Kafka cluster continues to perform well while being upgraded.

  1. In the IMAGES file that comes with the Operator bundle, locate the Confluent Platform component that you want to update, and take the image tag, <new-tag>.

  2. In your config file ($VALUES_FILE), add or update the following section:

        tag: <new-tag>
  3. Run the following command, replacing <component-helm-release-name> with the Helm release name of the component:

    helm upgrade --install <component-helm-release-name> \
     --values $VALUES_FILE \
     --set <component>.enabled=true \
     --set <component>.image.tag=<new-tag> \
     ./confluent-operator \
     --namespace <namespace>

    A component rolling upgrade begins after you run the above helm upgrade command unless you have disabled reconciliation. (See the workflow above on upgrading to 1.7.2 for an example where you might disable reconciliation).