// Module included in the following assemblies:
//
// assembly-upgrade-resources.adoc

[id='proc-upgrade-kafka-rebalance-resources-{context}']
= Upgrading Kafka Rebalance resources to {ApiVersion}

.Prerequisites

* A Cluster Operator supporting the `{ApiVersion}` API version is up and running.
* Cruise Control is configured and deployed. 
See link:{BookURLUsing}#proc-deploying-cruise-control-str[Deploying Cruise Control^] in the _Using Strimzi_ guide. 

.Procedure
Perform the following steps for each `KafkaRebalance` custom resource in your deployment.

. Update the `KafkaRebalance` custom resource in an editor.
+
[source,shell,subs="+quotes,attributes"]
----
kubectl edit kafkarebalance _KAFKA-REBALANCE_
----

. Update the `apiVersion` of the `KafkaRebalance` custom resource to `{ApiVersion}`:
+
Replace:
+
[source,shell,subs="attributes"]
----
apiVersion: {KafkaRebalanceApiVersionPrev}
----
+
with:
+
[source,shell,subs="attributes"]
----
apiVersion: {KafkaRebalanceApiVersion}
----

. Save the file, exit the editor and wait for the updated custom resource to be reconciled.