You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Converting Strimzi custom resources to the v1 API
5
+
6
+
[role="_abstract"]
7
+
This section describes how to prepare Strimzi custom resources and CRDs for the `v1` API before performing an upgrade.
8
+
9
+
Prepare Strimzi custom resources and CRDs for the `v1` API by using the Strimzi API conversion tool or by applying the required changes manually.
10
+
The tool is provided with the release artifacts.
11
+
To use the tool, extract it and run the conversion script from the `bin` directory.
12
+
13
+
The migration to the `v1` API has two stages.
14
+
15
+
* Version 0.49 introduces the `v1` API and deprecates the older `v1alpha1`, `v1beta1`, and `v1beta2` versions. (`v1alpha1` and `v1beta1` versions are used only for `KafkaUser` and `KafkaTopic` resources).
16
+
* A later release (planned for 0.52.0 or 1.0.0) removes the `v1alpha1`, `v1beta1`, and `v1beta2` APIs and updates all components to use `v1`.
17
+
18
+
Complete the conversion of custom resources and CRDs after upgrading to version 0.49 or later, and before upgrading to the later release that removes the `v1beta2` API (Strimzi 0.52.0 / 1.0.0).
19
+
Resources converted to `v1` are compatible with Strimzi versions 0.49 and later.
Copy file name to clipboardExpand all lines: documentation/assemblies/upgrading/assembly-upgrade.adoc
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,6 @@ Kafka upgrades are performed by the Cluster Operator through rolling updates of
18
18
19
19
If you encounter any issues with the new version, Strimzi can be xref:assembly-downgrade-{context}[downgraded] to the previous version.
20
20
21
-
.Upgrade without downtime
22
-
23
21
For topics configured with high availability (replication factor of at least 3 and evenly distributed partitions), the upgrade process should not cause any downtime for consumers and producers.
24
22
25
23
The upgrade triggers rolling updates, where brokers are restarted one by one at different stages of the process.
@@ -28,16 +26,15 @@ During this time, overall cluster availability is temporarily reduced, which may
// This module is included in the following assemblies:
4
+
//
5
+
// assembly-upgrade.adoc
6
+
7
+
[id='con-api-conversion-v1-{context}']
8
+
= Converting to v1 API from versions earlier than 0.49
9
+
10
+
[role="_abstract"]
11
+
When upgrading from a version prior to Strimzi 0.49.0, you **must** convert your custom resources and CRDs to the `v1` API.
12
+
The `v1beta2` API is deprecated and will be removed in a future release (planned for 0.52.0 or 1.0.0).
13
+
14
+
IMPORTANT: This conversion applies to KRaft-based clusters.
15
+
If you are upgrading from a version earlier than 0.39, you must first xref:con-migrate-kraft-pre-0.39-{context}[migrate to KRaft] before proceeding with this conversion and the upgrade.
16
+
17
+
Follow this specific sequence for the `v1` API conversion:
18
+
19
+
. **Before upgrading the Cluster Operator to 0.49.0 or later:**
20
+
* If you have `KafkaUser` resources using the `.spec.authorization.acls[].operation` field (singular), you **must** update them to use `.spec.authorization.acls[].operations` (plural).
21
+
22
+
. **After upgrading the Cluster Operator to 0.49.0 or later:**
23
+
* You can now convert all other custom resources and CRDs to the `v1` API.
24
+
* This step **must** be done *after* the Cluster Operator is upgraded, as the new operator version is required to interpret the `v1` format.
25
+
* This conversion can be done any time after the 0.49.0 upgrade but **must** be completed before the future release that removes the `v1beta2` API.
26
+
27
+
For complete conversion instructions, see xref:assembly-api-conversion-{context}[Converting Strimzi custom resources to the `v1` API].
The Strimzi `v1` API introduces structural and configuration changes to custom resources.
7
+
Some properties and sections from earlier API versions have been removed or replaced.
8
+
9
+
Custom resources can be updated for the `v1` API in two ways:
10
+
11
+
* By using the Strimzi API conversion tool to apply supported automatic changes.
12
+
* By editing and reapplying resources manually without using the tool.
13
+
14
+
Even when the conversion tool is used, some changes must still be applied manually because the tool cannot modify or remove the unsupported configuration.
15
+
The reference information in this section lists which changes the tool can perform automatically and which require manual updates.
16
+
17
+
.Manual changes
18
+
19
+
Manual changes are updates that the conversion tool does not apply automatically.
20
+
21
+
To apply a manual change:
22
+
23
+
. Edit the affected custom resource.
24
+
. Update or remove the required properties.
25
+
. Reapply the resource using `kubectl apply -f` or `kubectl replace -f`.
26
+
27
+
.Automatic changes
28
+
29
+
Automatic changes are updates that the conversion tool applies during conversion.
30
+
Even when the conversion tool is used, some manual changes are still required for the custom resources.
Copy file name to clipboardExpand all lines: documentation/modules/upgrading/con-upgrade-paths.adoc
-5Lines changed: 0 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,8 +34,3 @@ Review supported Kafka versions in the link:https://strimzi.io/downloads/[Suppor
34
34
* The *Operators* column lists all released Strimzi versions (the Strimzi version is often called the "Operator version").
35
35
* The *Kafka versions* column lists the supported Kafka versions for each Strimzi version.
36
36
endif::Section[]
37
-
38
-
== Upgrading from a Strimzi version earlier than 0.39
39
-
40
-
Strimzi {ProductVersion} supports upgrades only for KRaft-based Apache Kafka clusters managed by Strimzi 0.39 and newer.
41
-
When upgrading from older Strimzi versions, please make sure to first upgrade to a Strimzi version from 0.39 to 0.45 and migrate to KRaft before upgrading to Strimzi {ProductVersion}.
You can xref:con-upgrade-cluster-{context}[upgrade Kubernetes with minimal downtime].
18
18
19
-
. Make sure you use Strimzi 0.39 or newer and all your Apache Kafka clusters are Kraft-based.
19
+
. xref:con-migrate-kraft-pre-0.39-{context}[Ensure Kafka clusters are KRaft-based].
20
20
+
21
-
ZooKeeper-based Apache Kafka clusters are not supported anymore and need to be migrated to KRaft before upgrading the Cluster Operator or Apache Kafka.
21
+
If upgrading from a version earlier than 0.39, you **must** migrate from ZooKeeper to KRaft *before* upgrading the Cluster Operator. Upgrades from ZooKeeper-based clusters are not supported.
22
+
23
+
. xref:con-api-conversion-v1-{context}[Prepare for v1 API conversion].
24
+
+
25
+
If upgrading from a version prior to 0.49, this requirement includes a `KafkaUser` update that **must** be done *before* upgrading the Cluster Operator.
22
26
23
27
. xref:assembly-upgrade-{context}[Upgrade the Cluster Operator].
0 commit comments