Confluent for Kubernetes のアップグレード

アップグレードのプロセスに着手する前に、使用する Kubernetes クラスターが Confluent for Kubernetes (CFK)のターゲットバージョンの サポートされる環境 に該当していることを確認します。

スケールアップ、構成の変更、認証情報のローテーションなどのクラスターに対する他の変更とは別にこのアップグレードを実施することを推奨します。

CFK をアップグレードするには

  1. リソースのリコンサイルを無効にします。

    Confluent Platform コンポーネントのローリング再起動を回避するために、以下のように Confluent Platform コンポーネントをデプロイした名前空間ごとに、リソースのリコンサイルを一時的に無効にします。

    kubectl annotate connect connect \
        platform.confluent.io/block-reconcile=true \
         --namespace <namespace>
    
    kubectl annotate controlcenter controlcenter \
         platform.confluent.io/block-reconcile=true \
         --namespace <namespace>
    
    kubectl annotate kafkarestproxy kafkarestproxy \
         platform.confluent.io/block-reconcile=true \
         --namespace <namespace>
    
    kubectl annotate kafka kafka \
         platform.confluent.io/block-reconcile=true \
         --namespace <namespace>
    
    kubectl annotate ksqldb ksqldb \
         platform.confluent.io/block-reconcile=true \
         --namespace <namespace>
    
    kubectl annotate schemaregistry schemaregistry \
         platform.confluent.io/block-reconcile=true \
         --namespace <namespace>
    
    kubectl annotate zookeeper zookeeper \
         platform.confluent.io/block-reconcile=true \
         --namespace <namespace>
    
  2. 最新の CFK チャートを取得します。

  3. 重要: Confluent Platform のカスタムリソース定義(CRD)をアップグレードします。

    kubectl apply -f <CFK home>/confluent-for-kubernetes/crds/
    

    This step is required because Helm does not support upgrading or deleting CRDs using Helm. For more information, see the Helm documentation.

  4. ホットフィックスまたはパッチバージョンにアップグレードする場合は、values.yaml で CFK の image.tag0.435.23 にアップデートします。例を次に示します。

    image:
      tag: "0.435.23"
    
  5. CFK を 2.3.1 にアップグレードします。

    • values ファイルを使用してカスタマイズした CFK をデプロイ している場合は、次のコマンドを実行して CFK をアップグレードします。

      helm upgrade --install confluent-operator \
        confluentinc/confluent-for-kubernetes \
        --values <path-to-values-file> \
        --namespace <namespace>
      
    • values ファイルをカスタマイズせずに CFK をデプロイしている場合は、次のコマンドを実行して CFK をアップデートします。

      helm upgrade --install confluent-operator \
        confluentinc/confluent-for-kubernetes \
        --namespace <namespace>
      
  6. 前述した最初の手順でリコンサイルを無効にした各 Confluent Platform コンポーネントのリソースのリコンサイルを有効にします。

    kubectl annotate <component CR kind> <cluster name> \
      platform.confluent.io/block-reconcile- \
      --namespace <namespace>