このコンテンツは選択した言語では利用できません。

Chapter 10. AMQ Streams resource upgrades


For this release of AMQ Streams, resources that use the API version kafka.strimzi.io/v1alpha1 must be updated to use kafka.strimzi.io/v1beta1.

The kafka.strimzi.io/v1alpha1 API version is deprecated in release 1.2.

This section describes the upgrade steps for the resources.

Important

The upgrade of resources must be performed after upgrading the Cluster Operator, so the Cluster Operator can understand the resources.

What if the resource upgrade does not take effect?

If the upgrade does not take effect, a warning is given in the logs on reconciliation to indicate that the resource cannot be updated until the apiVersion is updated.

To trigger the update, make a cosmetic change to the custom resource, such as adding an annotation.

Example annotation:

metadata:
  # ...
  annotations:
    upgrade: "Upgraded to kafka.strimzi.io/v1beta1"
Copy to Clipboard

10.1. Upgrading Kafka resources

Prerequisites

  • A Cluster Operator supporting the v1beta1 API version is up and running.

Procedure

Execute the following steps for each Kafka resource in your deployment.

  1. Update the Kafka resource in an editor.

    oc edit kafka my-cluster
    Copy to Clipboard
  2. Replace:

    apiVersion: kafka.strimzi.io/v1alpha1
    Copy to Clipboard

    with:

    apiVersion:kafka.strimzi.io/v1beta1
    Copy to Clipboard
  3. If the Kafka resource has:

    Kafka.spec.topicOperator
    Copy to Clipboard

    Replace it with:

    Kafka.spec.entityOperator.topicOperator
    Copy to Clipboard

    For example, replace:

    spec:
      # ...
      topicOperator: {}
    Copy to Clipboard

    with:

    spec:
      # ...
      entityOperator:
        topicOperator: {}
    Copy to Clipboard
  4. If present, move:

    Kafka.spec.entityOperator.affinity
    Copy to Clipboard
    Kafka.spec.entityOperator.tolerations
    Copy to Clipboard

    to:

    Kafka.spec.entityOperator.template.pod.affinity
    Copy to Clipboard
    Kafka.spec.entityOperator.template.pod.tolerations
    Copy to Clipboard

    For example, move:

    spec:
      # ...
      entityOperator:
        affinity {}
        tolerations {}
    Copy to Clipboard

    to:

    spec:
      # ...
      entityOperator:
        template:
          pod:
            affinity {}
            tolerations {}
    Copy to Clipboard
  5. If present, move:

    Kafka.spec.kafka.affinity
    Copy to Clipboard
    Kafka.spec.kafka.tolerations
    Copy to Clipboard

    to:

    Kafka.spec.kafka.template.pod.affinity
    Copy to Clipboard
    Kafka.spec.kafka.template.pod.tolerations
    Copy to Clipboard

    For example, move:

    spec:
      # ...
      kafka:
        affinity {}
        tolerations {}
    Copy to Clipboard

    to:

    spec:
      # ...
      kafka:
        template:
          pod:
            affinity {}
            tolerations {}
    Copy to Clipboard
  6. If present, move:

    Kafka.spec.zookeeper.affinity
    Copy to Clipboard
    Kafka.spec.zookeeper.tolerations
    Copy to Clipboard

    to:

    Kafka.spec.zookeeper.template.pod.affinity
    Copy to Clipboard
    Kafka.spec.zookeeper.template.pod.tolerations
    Copy to Clipboard

    For example, move:

    spec:
      # ...
      zookeeper:
        affinity {}
        tolerations {}
    Copy to Clipboard

    to:

    spec:
      # ...
      zookeeper:
        template:
          pod:
            affinity {}
            tolerations {}
    Copy to Clipboard
  7. Save the file, exit the editor and wait for the updated resource to be reconciled.

10.2. Upgrading Kafka Connect resources

Prerequisites

  • A Cluster Operator supporting the v1beta1 API version is up and running.

Procedure

Execute the following steps for each KafkaConnect resource in your deployment.

  1. Update the KafkaConnect resource in an editor.

    oc edit kafkaconnect my-connect
    Copy to Clipboard
  2. Replace:

    apiVersion: kafka.strimzi.io/v1alpha1
    Copy to Clipboard

    with:

    apiVersion:kafka.strimzi.io/v1beta1
    Copy to Clipboard
  3. If present, move:

    KafkaConnect.spec.affinity
    Copy to Clipboard
    KafkaConnect.spec.tolerations
    Copy to Clipboard

    to:

    KafkaConnect.spec.template.pod.affinity
    Copy to Clipboard
    KafkaConnect.spec.template.pod.tolerations
    Copy to Clipboard

    For example, move:

    spec:
      # ...
      affinity {}
      tolerations {}
    Copy to Clipboard

    to:

    spec:
      # ...
      template:
        pod:
          affinity {}
          tolerations {}
    Copy to Clipboard
  4. Save the file, exit the editor and wait for the updated resource to be reconciled.

10.3. Upgrading Kafka Connect S2I resources

Prerequisites

  • A Cluster Operator supporting the v1beta1 API version is up and running.

Procedure

Execute the following steps for each KafkaConnectS2I resource in your deployment.

  1. Update the KafkaConnectS2I resource in an editor.

    oc edit kafkaconnects2i my-connect
    Copy to Clipboard
  2. Replace:

    apiVersion: kafka.strimzi.io/v1alpha1
    Copy to Clipboard

    with:

    apiVersion:kafka.strimzi.io/v1beta1
    Copy to Clipboard
  3. If present, move:

    KafkaConnectS2I.spec.affinity
    Copy to Clipboard
    KafkaConnectS2I.spec.tolerations
    Copy to Clipboard

    to:

    KafkaConnectS2I.spec.template.pod.affinity
    Copy to Clipboard
    KafkaConnectS2I.spec.template.pod.tolerations
    Copy to Clipboard

    For example, move:

    spec:
      # ...
      affinity {}
      tolerations {}
    Copy to Clipboard

    to:

    spec:
      # ...
      template:
        pod:
          affinity {}
          tolerations {}
    Copy to Clipboard
  4. Save the file, exit the editor and wait for the updated resource to be reconciled.

10.4. Upgrading Kafka Mirror Maker resources

Prerequisites

  • A Cluster Operator supporting the v1beta1 API version is up and running.

Procedure

Execute the following steps for each KafkaMirrorMaker resource in your deployment.

  1. Update the KafkaMirrorMaker resource in an editor.

    oc edit kafkamirrormaker my-connect
    Copy to Clipboard
  2. Replace:

    apiVersion: kafka.strimzi.io/v1alpha1
    Copy to Clipboard

    with:

    apiVersion:kafka.strimzi.io/v1beta1
    Copy to Clipboard
  3. If present, move:

    KafkaConnectMirrorMaker.spec.affinity
    Copy to Clipboard
    KafkaConnectMirrorMaker.spec.tolerations
    Copy to Clipboard

    to:

    KafkaConnectMirrorMaker.spec.template.pod.affinity
    Copy to Clipboard
    KafkaConnectMirrorMaker.spec.template.pod.tolerations
    Copy to Clipboard

    For example, move:

    spec:
      # ...
      affinity {}
      tolerations {}
    Copy to Clipboard

    to:

    spec:
      # ...
      template:
        pod:
          affinity {}
          tolerations {}
    Copy to Clipboard
  4. Save the file, exit the editor and wait for the updated resource to be reconciled.

10.5. Upgrading Kafka Topic resources

Prerequisites

  • A Topic Operator supporting the v1beta1 API version is up and running.

Procedure

Execute the following steps for each KafkaTopic resource in your deployment.

  1. Update the KafkaTopic resource in an editor.

    oc edit kafkatopic my-topic
    Copy to Clipboard
  2. Replace:

    apiVersion: kafka.strimzi.io/v1alpha1
    Copy to Clipboard

    with:

    apiVersion:kafka.strimzi.io/v1beta1
    Copy to Clipboard
  3. Save the file, exit the editor and wait for the updated resource to be reconciled.

10.6. Upgrading Kafka User resources

Prerequisites

  • A User Operator supporting the v1beta1 API version is up and running.

Procedure

Execute the following steps for each KafkaUser resource in your deployment.

  1. Update the KafkaUser resource in an editor.

    oc edit kafkauser my-user
    Copy to Clipboard
  2. Replace:

    apiVersion: kafka.strimzi.io/v1alpha1
    Copy to Clipboard

    with:

    apiVersion:kafka.strimzi.io/v1beta1
    Copy to Clipboard
  3. Save the file, exit the editor and wait for the updated resource to be reconciled.
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat